truestone Lv 1
In below code, a slider initialized to a particular value shows a different value.
d = dialog.CreateDialog("test")
value = 1.7
repeat
print(value)
d.s = dialog.AddSlider("slider", value, 0, 5, 1)
dialog.Show(d)
value = d.s.value
until value == 0
The slider should be at 1.7 but shows 1.6. Slide it to 3.4 and close the dialog. The value printed is 3.4 but when fed back to the slider, it drops to 3.3.