Easy Accurate Reading and Writing of Floating-Point Numbers

  title={Easy Accurate Reading and Writing of Floating-Point Numbers},
  author={Aubrey Jaffer},
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. 
Recent Discussions
This paper has been referenced on Twitter 4 times over the past 90 days. VIEW TWEETS

From This Paper

Figures, tables, and topics from this paper.


Publications citing this paper.


Publications referenced by this paper.
Showing 1-9 of 9 references

Burger and R . Kent Dybvig . Printing Floating - point Numbers Quickly and Accurately

  • G. Robert

Clinger . How to Read Floating Point Numbers Accurately

  • D. William

Jon L . White . How to Print Floating - point Numbers Accurately

  • Guy L. Steele

Matula . In - and - out Conversions

  • W David
  • Commun . ACM

Similar Papers

Loading similar papers…