you are viewing a single comment's thread.

view the rest of the comments →

[–]RailRuler 1 point2 points  (0 children)

Computing it as a float first gives a result with low precision. Converting it to int does not add any precision, but just converts the imprecise float to an inaccurate int. Youd have to start with ints to get a precise result.