Hacker News new | past | comments | ask | show | jobs | submit login




>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.


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


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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: