aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2001-01-04 11:31:56 +0000
committerDave Love2001-01-04 11:31:56 +0000
commit898bb59ad4a28557ef1e183cef95edf7c39d838f (patch)
tree8a4f1da8021a5095adee9ad72bd56eca537fef3a
parent5760471ff724e4d92e392bdf70aec983258ff6c4 (diff)
downloademacs-898bb59ad4a28557ef1e183cef95edf7c39d838f.tar.gz
emacs-898bb59ad4a28557ef1e183cef95edf7c39d838f.zip
%X, %E, %G in format strings.
-rw-r--r--lispref/strings.texi16
1 files changed, 10 insertions, 6 deletions
diff --git a/lispref/strings.texi b/lispref/strings.texi
index 3f99834fe7f..ac305225fc0 100644
--- a/lispref/strings.texi
+++ b/lispref/strings.texi
@@ -663,30 +663,34 @@ Replace the specification with the base-ten representation of an
663integer. 663integer.
664 664
665@item %x 665@item %x
666@itemx %X
666@cindex integer to hexadecimal 667@cindex integer to hexadecimal
667Replace the specification with the base-sixteen representation of an 668Replace the specification with the base-sixteen representation of an
668integer. 669integer. @samp{%x} uses lower case and @samp{%X} uses upper case.
669 670
670@item %c 671@item %c
671Replace the specification with the character which is the value given. 672Replace the specification with the character which is the value given.
672 673
673@item %e 674@item %e
675@itemx %E
674Replace the specification with the exponential notation for a floating 676Replace the specification with the exponential notation for a floating
675point number. 677point number. @samp{%e} uses lower case @samp{e} for the exponent and
678@samp{%E} uses upper case.
676 679
677@item %f 680@item %f
678Replace the specification with the decimal-point notation for a floating 681Replace the specification with the decimal-point notation for a floating
679point number. 682point number.
680 683
681@item %g 684@item %g
685@itemx %G
682Replace the specification with notation for a floating point number, 686Replace the specification with notation for a floating point number,
683using either exponential notation or decimal-point notation, whichever 687using either exponential notation or decimal-point notation, whichever
684is shorter. 688is shorter. @samp{%G} uses upper case if an exponent is printed.
685 689
686@item %% 690@item %%
687Replace the specification with a single @samp{%}. This format specification is 691Replace the specification with a single @samp{%}. This format
688unusual in that it does not use a value. For example, @code{(format "%% 692specification is unusual in that it does not use a value. For example,
689%d" 30)} returns @code{"% 30"}. 693@code{(format "%% %d" 30)} returns @code{"% 30"}.
690@end table 694@end table
691 695
692 Any other format character results in an @samp{Invalid format 696 Any other format character results in an @samp{Invalid format