README (165744) | README (182709) |
---|---|
1This directory contains source for a library of binary -> decimal 2and decimal -> binary conversion routines, for single-, double-, 3and extended-precision IEEE binary floating-point arithmetic, and 4other IEEE-like binary floating-point, including "double double", 5as in 6 7 T. J. Dekker, "A Floating-Point Technique for Extending the 8 Available Precision", Numer. Math. 18 (1971), pp. 224-242 --- 318 unchanged lines hidden (view full) --- 327bit fpi->nbits in the bits array on. Denormals have it off, with 328exponent = fpi->emin. Strtodg provides distinct return values for normals 329and denormals; see gdtoa.h. 330 331Compiling g__fmt.c, strtod.c, and strtodg.c with -DUSE_LOCALE causes 332the decimal-point character to be taken from the current locale; otherwise 333it is '.'. 334 | 1This directory contains source for a library of binary -> decimal 2and decimal -> binary conversion routines, for single-, double-, 3and extended-precision IEEE binary floating-point arithmetic, and 4other IEEE-like binary floating-point, including "double double", 5as in 6 7 T. J. Dekker, "A Floating-Point Technique for Extending the 8 Available Precision", Numer. Math. 18 (1971), pp. 224-242 --- 318 unchanged lines hidden (view full) --- 327bit fpi->nbits in the bits array on. Denormals have it off, with 328exponent = fpi->emin. Strtodg provides distinct return values for normals 329and denormals; see gdtoa.h. 330 331Compiling g__fmt.c, strtod.c, and strtodg.c with -DUSE_LOCALE causes 332the decimal-point character to be taken from the current locale; otherwise 333it is '.'. 334 |
335Source files dtoa.c and strtod.c in this directory are derived from 336netlib's "dtoa.c from fp" and are meant to function equivalently. 337When compiled with Honor_FLT_ROUNDS #defined (on systems that provide 338FLT_ROUNDS and fegetround() as specified in the C99 standard), they 339honor the current rounding mode. Because FLT_ROUNDS is buggy on some 340(Linux) systems -- not reflecting calls on fesetround(), as the C99 341standard says it should -- when Honor_FLT_ROUNDS is #defined, the 342current rounding mode is obtained from fegetround() rather than from 343FLT_ROUNDS, unless Trust_FLT_ROUNDS is also #defined. 344 |
|
335Please send comments to David M. Gay (dmg at acm dot org, with " at " 336changed at "@" and " dot " changed to "."). | 345Please send comments to David M. Gay (dmg at acm dot org, with " at " 346changed at "@" and " dot " changed to "."). |