diff --git a/DoroHelper.ahk b/DoroHelper.ahk index bcb1d2e..40407de 100644 --- a/DoroHelper.ahk +++ b/DoroHelper.ahk @@ -390,10 +390,11 @@ LoadSettings() { ;tag 改变滑条数据 ChangeSlider(settingName, CtrlObj) { global g_numeric_settings, toleranceDisplayEditControl - local actualValue := CtrlObj.Value / 10.0 + ; 将滑动条的整数值除以100,以获得1.00到2.00之间的浮点数 + local actualValue := CtrlObj.Value / 100.0 g_numeric_settings[settingName] := actualValue - ; 使用 Format 函数将浮点数格式化为小数点后一位 - local formattedValue := Format("{:.1f}", actualValue) + ; 使用 Format 函数将浮点数格式化为小数点后两位 + local formattedValue := Format("{:.2f}", actualValue) toleranceDisplayEditControl.Value := formattedValue } ;tag 保存数据