* [patch] printf.3: Fix description of %a hexfloat output
@ 2020-08-07 8:30 Jonathan Wakely
2020-08-23 18:03 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Wakely @ 2020-08-07 8:30 UTC (permalink / raw)
To: mtk.manpages; +Cc: linux-man
The description of hexadecimal floating-point output is missing a
character describing the exponent. The guarantee of at least one digit
in the exponent is present in both C99 and POSIX.
diff --git a/man3/printf.3 b/man3/printf.3
index 18000bc70..d3510f7df 100644
--- a/man3/printf.3
+++ b/man3/printf.3
@@ -730,7 +730,7 @@ conversion, the
.I double
argument is converted to hexadecimal notation (using the letters abcdef)
in the style
-.RB [\-] 0x h \&. hhhh p \(+-;
+.RB [\-] 0x h \&. hhhh p \(+-d;
for
.B A
conversion the prefix
@@ -746,6 +746,8 @@ and otherwise is sufficiently large to distinguish values of type
.IR double .
The digit before the decimal point is unspecified for nonnormalized
numbers, and nonzero but otherwise unspecified for normalized numbers.
+The exponent always contains at least one
+digit; if the value is zero, the exponent is 0.
.TP
.B c
If no
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] printf.3: Fix description of %a hexfloat output
2020-08-07 8:30 [patch] printf.3: Fix description of %a hexfloat output Jonathan Wakely
@ 2020-08-23 18:03 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-08-23 18:03 UTC (permalink / raw)
To: Jonathan Wakely; +Cc: linux-man
Hi Jonathan!
On 8/7/20 10:30 AM, Jonathan Wakely wrote:
> The description of hexadecimal floating-point output is missing a
> character describing the exponent. The guarantee of at least one digit
> in the exponent is present in both C99 and POSIX.
Thanks. Patch applied.
Cheers,
Michael
> diff --git a/man3/printf.3 b/man3/printf.3
> index 18000bc70..d3510f7df 100644
> --- a/man3/printf.3
> +++ b/man3/printf.3
> @@ -730,7 +730,7 @@ conversion, the
> .I double
> argument is converted to hexadecimal notation (using the letters abcdef)
> in the style
> -.RB [\-] 0x h \&. hhhh p \(+-;
> +.RB [\-] 0x h \&. hhhh p \(+-d;
> for
> .B A
> conversion the prefix
> @@ -746,6 +746,8 @@ and otherwise is sufficiently large to distinguish values of type
> .IR double .
> The digit before the decimal point is unspecified for nonnormalized
> numbers, and nonzero but otherwise unspecified for normalized numbers.
> +The exponent always contains at least one
> +digit; if the value is zero, the exponent is 0.
> .TP
> .B c
> If no
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-23 18:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-07 8:30 [patch] printf.3: Fix description of %a hexfloat output Jonathan Wakely
2020-08-23 18:03 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).