You are looking at historical revision 10560 of this page. It
may differ significantly from its current revision. The fpio
library contains a routines for converting floating-point
numbers between IEEE binary representation and decimal string
representation. It is based on the gdtoa There are two routines
included with the library, string->fp and fp->string.
fp->string:: NUMBER [* NDIGITS] -> STRING Converts the given
floating-point number to decimal string representation. If
optional argument NDIGITS is positive, the conversion is done to
the specified number of decimal places. If NDIGITS is zero (the
default) or negative, the conversion is done to the shortest
decimal string that rounds to the given floating point value.
string->fp:: STRING [* ROUNDING] -> NUMBER Converts the given
decimal string number to binary IEEE floating point
representation. Optional argument ROUNDING is a symbol that can
be one of: - indicates rounding-towards-zero mode (the default)
- indicates rounding-towards-nearest mode - indic