Consider a float value like 1.82 set by the user. How do I find the next highest .05 value? For the given example the next highest value is 1.85.
Is there a simple way or does it take a complex algorithm? I tried to use floor and ceiling functions to come up with the distance from the float to the next highest and lowest Integers. But I’m not sure how to proceed once I have that info.
Thanks.
Multiply by 20, use ceiling, divide by 20.