Hello.

I know there are many similar questions.

Maybe somebody give me fast answer.

146.015 roundTo: 0.01 => 146.01

I guess internal representation of 146.015 is something like
146.014999999999...
That's why rounding result is 146.01

But how I can round arbitrary float my math root?
How to fix my example to get 146.02?

Best regards,
Denis

Reply via email to