diff options
| author | Dave Love | 2001-01-04 11:31:56 +0000 |
|---|---|---|
| committer | Dave Love | 2001-01-04 11:31:56 +0000 |
| commit | 898bb59ad4a28557ef1e183cef95edf7c39d838f (patch) | |
| tree | 8a4f1da8021a5095adee9ad72bd56eca537fef3a | |
| parent | 5760471ff724e4d92e392bdf70aec983258ff6c4 (diff) | |
| download | emacs-898bb59ad4a28557ef1e183cef95edf7c39d838f.tar.gz emacs-898bb59ad4a28557ef1e183cef95edf7c39d838f.zip | |
%X, %E, %G in format strings.
| -rw-r--r-- | lispref/strings.texi | 16 |
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 | |||
| 663 | integer. | 663 | integer. |
| 664 | 664 | ||
| 665 | @item %x | 665 | @item %x |
| 666 | @itemx %X | ||
| 666 | @cindex integer to hexadecimal | 667 | @cindex integer to hexadecimal |
| 667 | Replace the specification with the base-sixteen representation of an | 668 | Replace the specification with the base-sixteen representation of an |
| 668 | integer. | 669 | integer. @samp{%x} uses lower case and @samp{%X} uses upper case. |
| 669 | 670 | ||
| 670 | @item %c | 671 | @item %c |
| 671 | Replace the specification with the character which is the value given. | 672 | Replace the specification with the character which is the value given. |
| 672 | 673 | ||
| 673 | @item %e | 674 | @item %e |
| 675 | @itemx %E | ||
| 674 | Replace the specification with the exponential notation for a floating | 676 | Replace the specification with the exponential notation for a floating |
| 675 | point number. | 677 | point 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 |
| 678 | Replace the specification with the decimal-point notation for a floating | 681 | Replace the specification with the decimal-point notation for a floating |
| 679 | point number. | 682 | point number. |
| 680 | 683 | ||
| 681 | @item %g | 684 | @item %g |
| 685 | @itemx %G | ||
| 682 | Replace the specification with notation for a floating point number, | 686 | Replace the specification with notation for a floating point number, |
| 683 | using either exponential notation or decimal-point notation, whichever | 687 | using either exponential notation or decimal-point notation, whichever |
| 684 | is shorter. | 688 | is shorter. @samp{%G} uses upper case if an exponent is printed. |
| 685 | 689 | ||
| 686 | @item %% | 690 | @item %% |
| 687 | Replace the specification with a single @samp{%}. This format specification is | 691 | Replace the specification with a single @samp{%}. This format |
| 688 | unusual in that it does not use a value. For example, @code{(format "%% | 692 | specification 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 |