English

Easy Accurate Reading and Writing of Floating-Point Numbers

Numerical Analysis 2018-08-08 v7

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.

Keywords

Cite

@article{arxiv.1310.8121,
  title  = {Easy Accurate Reading and Writing of Floating-Point Numbers},
  author = {Aubrey Jaffer},
  journal= {arXiv preprint arXiv:1310.8121},
  year   = {2018}
}

Comments

8 pages, 6 figures