|
|
|
|
|
by Diggsey
2386 days ago
|
|
No, it doesn't. It has the exact same rounding bug described in the article. The article even mentions: > FWIW, all 22 answers posted, including the ones using Apache Commons and Android libraries, had this bug (or a variation of it) at the time of writing. |
|
999,999 shouldn't be big enough to be affected by floating point rounding.
If the comment is correct then Java will evaluate ( 999999 >= 1000000 ) as true, which simply cannot be correct.