mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 23:10:28 -08:00
; Document %i format
* src/editfns.c (Fformat): Doc fix. * doc/lispref/strings.texi (Formatting Strings): Document %i.
This commit is contained in:
parent
85db0ac0d6
commit
1895ba3ba3
2 changed files with 3 additions and 2 deletions
|
|
@ -1036,6 +1036,7 @@ way. The object can also be a floating-point number that is formatted
|
||||||
as an integer, dropping any fraction.
|
as an integer, dropping any fraction.
|
||||||
|
|
||||||
@item %d
|
@item %d
|
||||||
|
@itemx %i
|
||||||
Replace the specification with the base-ten representation of a signed
|
Replace the specification with the base-ten representation of a signed
|
||||||
integer. The object can also be a floating-point number that is
|
integer. The object can also be a floating-point number that is
|
||||||
formatted as an integer, dropping any fraction.
|
formatted as an integer, dropping any fraction.
|
||||||
|
|
|
||||||
|
|
@ -3312,7 +3312,7 @@ The format control string may contain %-sequences meaning to substitute
|
||||||
the next available argument, or the argument explicitly specified:
|
the next available argument, or the argument explicitly specified:
|
||||||
|
|
||||||
%s means produce a string argument. Actually, produces any object with `princ'.
|
%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.
|
%o means produce a number in octal.
|
||||||
%x means produce a number in hex.
|
%x means produce a number in hex.
|
||||||
%X is like %x, but uses upper case.
|
%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.
|
%c means produce a number as a single character.
|
||||||
%S means produce any object as an s-expression (using `prin1').
|
%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
|
%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).
|
(this is experimental; email 32252@debbugs.gnu.org if you need it).
|
||||||
Use %% to put a single % into the output.
|
Use %% to put a single % into the output.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue