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

I think you are looking for "Printing floating-point numbers quickly and accurately with integers (2010)".

http://dl.acm.org/citation.cfm?id=1806623

The title is play on "Printing floating-point numbers quickly and accurately (1996)", which in turn is play on "How to print floating-point numbers accurately (1990)".

http://dl.acm.org/citation.cfm?id=231397 http://dl.acm.org/citation.cfm?id=93559




I wonder if any C standard libraries have implemented this.


I understand that v8 is using this algorithm, and Julia also now uses it thanks to work by Jacob Quinn https://github.com/JuliaLang/julia/tree/master/base/grisu


Rust also now uses this algorithm, thanks to Kang Seonghoon: https://github.com/rust-lang/rust/tree/master/src/libcore/nu...

Rust implementation is heavily commented with beautiful ASCII diagrams.




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

Search: