floating_point_number_to_string_conversion.rst (724B)
1 NSPR provides functions that convert double-precision floating point 2 numbers to and from their character string representations. 3 4 These conversion functions were originally written by David M. Gay of 5 AT&T. They use IEEE double-precision (not IEEE double-extended) 6 arithmetic. 7 8 The header file ``prdtoa.h`` declares these functions. The functions 9 are: 10 11 - :ref:`PR_strtod` 12 - :ref:`PR_dtoa` 13 - :ref:`PR_cnvtf` 14 15 References 16 ---------- 17 18 Gay's implementation is inspired by these two papers. 19 20 [1] William D. Clinger, "How to Read Floating Point Numbers Accurately," 21 Proc. ACM SIGPLAN '90, pp. 92-101. 22 23 [2] Guy L. Steele, Jr. and Jon L. White, "How to Print Floating-Point 24 Numbers Accurately," Proc. ACM SIGPLAN '90, pp. 112-126.