Computer Science > Numerical Analysis
[Submitted on 28 Oct 2013 (v1), last revised 7 Aug 2018 (this version, v7)]
Title:Easy Accurate Reading and Writing of Floating-Point Numbers
View PDFAbstract: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.
Submission history
From: Aubrey Jaffer [view email][v1] Mon, 28 Oct 2013 00:01:26 UTC (4 KB)
[v2] Sat, 17 May 2014 00:26:24 UTC (28 KB)
[v3] Wed, 21 May 2014 03:01:37 UTC (23 KB)
[v4] Sat, 24 May 2014 02:33:09 UTC (23 KB)
[v5] Sun, 4 Jan 2015 03:59:03 UTC (17 KB)
[v6] Fri, 9 Jan 2015 03:26:06 UTC (17 KB)
[v7] Tue, 7 Aug 2018 13:35:22 UTC (29 KB)
Current browse context:
math.NA
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.