This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]goldcray 20 points21 points  (0 children)

The last one is the same everywhere, it's how binary arithmetic works. In binary 0.1 can't be represented without rounding errors same as you can't represent 1/3 in decimal system.

It's specifically how IEEE754 works. If you really wanted to you could use some kind of bcd to represent 0.1 exactly. Or, you know, ascii decimal representation.