website/docs: document difference in formatting strings with width and precision (#25499)
This commit is contained in:
parent
2ff44acecc
commit
c4ce84269a
|
@ -117,6 +117,10 @@ The function produces an error if the format string requests an impossible
|
|||
conversion or access more arguments than are given. An error is produced also
|
||||
for an unsupported format verb.
|
||||
|
||||
-> **Note:** Width and precision modifiers with non-numeric types such as
|
||||
strings (`%s`) are interpreted differently. Setting either width or precision to
|
||||
zero is the same as not including them at all.
|
||||
|
||||
## Related Functions
|
||||
|
||||
* [`formatdate`](./formatdate.html) is a specialized formatting function for
|
||||
|
|
Loading…
Reference in New Issue