changeset 35036:956652ab5efc

%X, %E, %G in format strings.
author Dave Love <fx@gnu.org>
date Thu, 04 Jan 2001 11:31:56 +0000
parents 610ac8a2b8a5
children 3c5b13084896
files lispref/strings.texi
diffstat 1 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/strings.texi	Thu Jan 04 08:51:36 2001 +0000
+++ b/lispref/strings.texi	Thu Jan 04 11:31:56 2001 +0000
@@ -663,30 +663,34 @@
 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