printf.3: Add detail on the first digit with the %e format

This requirement on the first digit with the %e format comes from
the ISO C standard. It ensures that all the digits in the output are
significant and forbids output with a precision less than requested.

Signed-off-by: Vincent Lefevre <vincent@vinc17.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Vincent Lefevre 2019-08-20 15:35:04 +02:00 committed by Michael Kerrisk
parent 5a7f305a18
commit 986d5d0048
1 changed files with 2 additions and 1 deletions

View File

@ -658,7 +658,8 @@ The
.I double
argument is rounded and converted in the style
.RB [\-]d \&. ddd e \(+-dd
where there is one digit before the decimal-point character and the number
where there is one digit (which is nonzero if the argument is nonzero)
before the decimal-point character and the number
of digits after it is equal to the precision; if the precision is missing,
it is taken as 6; if the precision is zero, no decimal-point character
appears.