News for hackers. Stuff that matters.
Re:0.30000000000000004 by dietrichepp on Sunday April 02, 2017 @03:57PM (#14018721)
That's basically how Gay's dtoa works, and you'll find it copied into many projects—Python, for example, uses it for repr().

http://www.netlib.org/fp/dtoa.c

Re:0.30000000000000004 by Avernar on Sunday April 02, 2017 @07:51PM (#14019742)
I've long ago stopped using C's standard library floating point routines and use Gay's code. Main reason was inconsistencies between compilers.
Re:0.30000000000000004 by floitsch on Monday April 03, 2017 @08:04AM (#14022129)
There is also http://github.com/double-conversion (of which I'm the author).

It's based on http://florian.loitsch.com/publications/dtoa-pldi2010.pdf

I'm obviously biased, but I think the API is easier, and the algorithm is faster.

However, it's in C++ (which might not suit your needs), and it requires more code (especially with the precomputed constants).