1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

; Document %i format

* src/editfns.c (Fformat): Doc fix.

* doc/lispref/strings.texi (Formatting Strings): Document %i.
This commit is contained in:
Eli Zaretskii 2025-10-11 12:08:48 +03:00
parent 85db0ac0d6
commit 1895ba3ba3
2 changed files with 3 additions and 2 deletions

View file

@ -1036,6 +1036,7 @@ way. The object can also be a floating-point number that is formatted
as an integer, dropping any fraction.
@item %d
@itemx %i
Replace the specification with the base-ten representation of a signed
integer. The object can also be a floating-point number that is
formatted as an integer, dropping any fraction.

View file

@ -3312,7 +3312,7 @@ The format control string may contain %-sequences meaning to substitute
the next available argument, or the argument explicitly specified:
%s means produce a string argument. Actually, produces any object with `princ'.
%d means produce as signed number in decimal.
%d or %i means produce a signed number in decimal.
%o means produce a number in octal.
%x means produce a number in hex.
%X is like %x, but uses upper case.
@ -3324,7 +3324,7 @@ the next available argument, or the argument explicitly specified:
%c means produce a number as a single character.
%S means produce any object as an s-expression (using `prin1').
The argument used for %d, %o, %x, %e, %f, %g or %c must be a number.
The argument used for %d, %i, %o, %x, %e, %f, %g or %c must be a number.
%o, %x, and %X treat arguments as unsigned if `binary-as-unsigned' is t
(this is experimental; email 32252@debbugs.gnu.org if you need it).
Use %% to put a single % into the output.