Why does 99.99 / 100 = 0.9998999999999999
Posted
by the-locster
on Stack Overflow
See other posts from Stack Overflow
or by the-locster
Published on 2010-05-28T15:34:08Z
Indexed on
2010/05/28
15:42 UTC
Read the original article
Hit count: 185
Whereas 99.99 * 0.01 = 0.99
Clearly this is the age old floating point rounding issue, however the rounding error in this case seems quite large to me; what I mean is I might have expected a result of 0.99990000001 or some similar 'close' result.
And for the record I got the same answer in a JavaVM and in a .Net environment.
© Stack Overflow or respective owner