I believe that the example you are talking about is another problem; As far as I understand, they say that 0.1 is not stored in the float, as exactly 0.1, it is actually a bit disabled due to the way the float is stored in binary format. So, suppose it actually looks more like 0.0999999999999 (or similar), something very, very slightly less than 0.1 - so insignificant that it doesn't really matter. Well, no, they say: one noticeable difference would be that adding this to your number and rounding would actually seem wrong, because although the numbers are very close, they are still considered "less." 5 for rounding.
If I misunderstood this page, I hope someone corrects me :)
I do not understand how this relates to your challenge, because you are more explicit. Perhaps it just stores your number in a similar way.
DRobinson Feb 10 2018-12-12T00: 00Z
source share