summaryrefslogtreecommitdiff
path: root/lispref
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2001-01-04 11:31:56 +0000
committerDave Love <fx@gnu.org>2001-01-04 11:31:56 +0000
commit898bb59ad4a28557ef1e183cef95edf7c39d838f (patch)
tree8a4f1da8021a5095adee9ad72bd56eca537fef3a /lispref
parent5760471ff724e4d92e392bdf70aec983258ff6c4 (diff)
downloademacs-898bb59ad4a28557ef1e183cef95edf7c39d838f.tar.gz
%X, %E, %G in format strings.
Diffstat (limited to 'lispref')
-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
integer.
@item %x
+@itemx %X
@cindex integer to hexadecimal
Replace the specification with the base-sixteen representation of an
-integer.
+integer. @samp{%x} uses lower case and @samp{%X} uses upper case.
@item %c
Replace the specification with the character which is the value given.
@item %e
+@itemx %E
Replace the specification with the exponential notation for a floating
-point number.
+point number. @samp{%e} uses lower case @samp{e} for the exponent and
+@samp{%E} uses upper case.
@item %f
Replace the specification with the decimal-point notation for a floating
point number.
@item %g
+@itemx %G
Replace the specification with notation for a floating point number,
using either exponential notation or decimal-point notation, whichever
-is shorter.
+is shorter. @samp{%G} uses upper case if an exponent is printed.
@item %%
-Replace the specification with a single @samp{%}. This format specification is
-unusual in that it does not use a value. For example, @code{(format "%%
-%d" 30)} returns @code{"% 30"}.
+Replace the specification with a single @samp{%}. This format
+specification is unusual in that it does not use a value. For example,
+@code{(format "%% %d" 30)} returns @code{"% 30"}.
@end table
Any other format character results in an @samp{Invalid format