mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-25 09:35:16 +00:00
Update documentation (#3789)
Add a note about the numerical zero being ignored when an alignment flag is present in the format specifier. This change was introduced in a585571e90e7f5645bcf6548cef42078db940f49 to be compatible with std::format, but misses documentation.
This commit is contained in:
parent
bee495c97f
commit
6c617c9670
@ -153,7 +153,8 @@ Preceding the *width* field by a zero (``'0'``) character enables sign-aware
|
|||||||
zero-padding for numeric types. It forces the padding to be placed after the
|
zero-padding for numeric types. It forces the padding to be placed after the
|
||||||
sign or base (if any) but before the digits. This is used for printing fields in
|
sign or base (if any) but before the digits. This is used for printing fields in
|
||||||
the form '+000000120'. This option is only valid for numeric types and it has no
|
the form '+000000120'. This option is only valid for numeric types and it has no
|
||||||
effect on formatting of infinity and NaN.
|
effect on formatting of infinity and NaN. This option is ignored when any
|
||||||
|
alignment specifier is present.
|
||||||
|
|
||||||
The *precision* is a decimal number indicating how many digits should be
|
The *precision* is a decimal number indicating how many digits should be
|
||||||
displayed after the decimal point for a floating-point value formatted with
|
displayed after the decimal point for a floating-point value formatted with
|
||||||
|
Loading…
x
Reference in New Issue
Block a user