 |
Why Math.round(0.499999999999999917) rounds to 1 on Java 6 | Java Code Geeks
Overview There are two types of error representation error and arithmetic rounding error which are common in floating point calculations. These two error combine in this simple example, Math.round(0.499999999999999917) rounds to 1 in Java 6. Representatio
www.javacodegeeks.com |
 |