bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Easy Accurate Reading and Writing of Floating-Point Numbers


From: Marc Nieper-Wißkirchen
Subject: Easy Accurate Reading and Writing of Floating-Point Numbers
Date: Tue, 19 May 2020 09:44:24 +0200

It is often important to be able to read back a written floating-point
number accurately so it has to be output with high enough precision.
The Scheme standard even demands this for the number->string and
string->number procedures. Moreover, for output, the shortest rounded
representation that still reads back accurately has to be selected.

Such input and output routines for floats and doubles would also be
very helpful in the C language. Do you think this could become a
Gnulib module?

A simple algorithm is given by Aubrey Jaffer in [1].

Marc

[1] http://people.csail.mit.edu/jaffer/III/EZFPRW



reply via email to

[Prev in Thread] Current Thread [Next in Thread]