arXiv · 1310.8121
Easy Accurate Reading and Writing of Floating-Point Numbers
Abstract
Presented here are algorithms for converting between (decimal) scientific-notation and (binary) IEEE-754 double-precision floating-point numbers. By employing a rounding integer quotient operation these algorithms are much simpler than those previously published. The values are stable under repeated conversions between the formats. Unlike Java-1.8, the scientific representations generated use only the minimum number of mantissa digits needed to convert back to the original binary values.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Aubrey Jaffer. 2018-08-07. Easy Accurate Reading and Writing of Floating-Point Numbers. https://arxiv.org/abs/1310.8121
Cite the original work for its findings. Save a collection to share your selection of sources.