diff options
author | das <das@FreeBSD.org> | 2008-04-12 03:11:56 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2008-04-12 03:11:56 +0000 |
commit | 61773c1deacd8758a3c214a1b608e5184f5c7748 (patch) | |
tree | c10403aa0cc06a8243bc3d11e4dc711be1a9738e /lib/libc/stdio | |
parent | 244a0bcf48872d13bf9179d3a111603a24ce1b33 (diff) | |
download | FreeBSD-src-61773c1deacd8758a3c214a1b608e5184f5c7748.zip FreeBSD-src-61773c1deacd8758a3c214a1b608e5184f5c7748.tar.gz |
Updates for changes in the way printf() handles hex floating point
numbers.
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/printf.3 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3 index 84e6089..a126a64 100644 --- a/lib/libc/stdio/printf.3 +++ b/lib/libc/stdio/printf.3 @@ -549,13 +549,14 @@ to separate the mantissa and exponent. Note that there may be multiple valid ways to represent floating-point numbers in this hexadecimal format. For example, -.Li 0x3.24p+0 , 0x6.48p-1 +.Li 0x1.92p+1 , 0x3.24p+0 , 0x6.48p-1 , and .Li 0xc.9p-2 are all equivalent. -The format chosen depends on the internal representation of the -number, but the implementation guarantees that the length of the -mantissa will be minimized. +.Fx 8.0 +and later always prints finite non-zero numbers using +.Ql 1 +as the digit before the hexadecimal point. Zeroes are always represented with a mantissa of 0 (preceded by a .Ql - if appropriate) and an exponent of |