View Single Post
Mentor
4Feb2010,13:46  
xpi0t0s's Avatar
Looks like you need to round off. 1.759xxx -> 1.76. You can round to a whole number by adding half then casting to an int (so 1.4->1.9->1, 1.7->2.3->2, so this rounds to the nearest integer), so to round to the nearest 1/100th you can do something similar.