live.numbox Steps rounding error
create a [live.numbox]
set Range/Enum to "0 100"
set Steps to 10
try mouse-drag values in the live.numbox. The first value will be 11 instead of 10 and so on.
this bug happens no matter the Type and Unit settings (int and float).
Max 9.0.5
(btw for some reason the Steps attribute has no effect on [number] object whatsoever, but that would be a separate bug report.)
Hello BAEK,
This is actually expected behaviour, though maybe not intuitive.
It's basically the telegraph posts problem: When you like to go from 0 to 100 with increments of 10 you need 11 steps, not 10, because the 0 and 100 have to be included.
Solution: set steps to 11.
PS:
Why it's called telegraph posts problem:
If you have 100 meters of telegraph wire and you want to put a post every 50 meters you need three posts, not two, because the wire has to be supported at either and as well.
wire length / pole distance + 1
Thank you very much Jan!
Consider this issue solved!