Showing posts with label rounding. Show all posts
Showing posts with label rounding. Show all posts

Tuesday, May 29, 2012

Why does Math.round(0.49999999999999994) return 1


In the following program you can see that for each value slightly less that .5 is rounded down, except for 0.5.