News for hackers. Stuff that matters.
Re:DEC64: Decimal Floating Point by tsenart on Sunday March 04, 2018 @06:02AM (#16514230)
Re:DEC64: Decimal Floating Point by 84Winston on Sunday March 04, 2018 @06:50AM (#16514382)
>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.

Re:DEC64: Decimal Floating Point by BlackFingolfin on Sunday March 04, 2018 @03:08PM (#16516385)
I see no contradiction here, as long as the period is >= 16...
Re:DEC64: Decimal Floating Point by wilun on Sunday March 04, 2018 @04:57PM (#16517022)
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.