top | item 16514382

(no title)

84Winston | 8 years ago

>Incidentally, binary floating point can also represent almost 16 (roughly 15.955) decimal places accurately

That's false. The author do not understand the limitations of binary floating point.

0.2 is a periodic number in binary floating point.

People need to first understand why 0.2 is a periodic number in binary floating point before writing a blog post.

discuss

order

BlackFingolfin|8 years ago

I see no contradiction here, as long as the period is >= 16...

wilun|8 years ago

Yep, it seems people need to understand the details of base translation before writing a comment :p

Anyway, IIRC you can round-trip 15 decimal digits correctly with an IEEE double. Don't know if it's floor(15.955) or something else, but it's close enough for me to consider DEC64 quite useless compared to existing, quite well-designed and widely used implementation of FP.