diff options
| author | David Schultz <das@FreeBSD.org> | 2008-04-12 03:11:56 +0000 |
|---|---|---|
| committer | David Schultz <das@FreeBSD.org> | 2008-04-12 03:11:56 +0000 |
| commit | e058c00c40c938ebbd22657a629dfefe6fdee481 (patch) | |
| tree | c10403aa0cc06a8243bc3d11e4dc711be1a9738e /lib/libc/stdio/printf.3 | |
| parent | 76303a9735ee760da4d7a15177d8595c656b9c7b (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/printf.3')
| -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 84e6089b6b7c..a126a641fc3d 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 |
