comparison lispref/strings.texi @ 71960:1df664b7bac5

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Tue, 18 Jul 2006 00:11:20 +0000
parents 797e05668794
children 698c7a5192be 8a8e69664178
comparison
equal deleted inserted replaced
71959:d160bc774f49 71960:1df664b7bac5
808 @end group 808 @end group
809 @end example 809 @end example
810 810
811 @cindex field width 811 @cindex field width
812 @cindex padding 812 @cindex padding
813 All the specification characters allow an optional ``width'', which 813 All the specification characters allow an optional ``width,'' which
814 is a digit-string between the @samp{%} and the character. If the 814 is a digit-string between the @samp{%} and the character. If the
815 printed representation of the object contains fewer characters than 815 printed representation of the object contains fewer characters than
816 this width, then it is padded. The padding is on the left if the 816 this width, then it is padded. The padding is on the left if the
817 width is positive (or starts with zero) and on the right if the 817 width is positive (or starts with zero) and on the right if the
818 width is negative. The padding character is normally a space, but if 818 width is negative. The padding character is normally a space, but if
879 879
880 A space character inserts a space for positive numbers (otherwise 880 A space character inserts a space for positive numbers (otherwise
881 nothing is inserted for positive numbers). This flag is ignored 881 nothing is inserted for positive numbers). This flag is ignored
882 except for @samp{%d}, @samp{%e}, @samp{%f}, @samp{%g}. 882 except for @samp{%d}, @samp{%e}, @samp{%f}, @samp{%g}.
883 883
884 The flag @samp{#} indicates ``alternate form''. For @samp{%o} it 884 The flag @samp{#} indicates ``alternate form.'' For @samp{%o} it
885 ensures that the result begins with a 0. For @samp{%x} and @samp{%X} 885 ensures that the result begins with a 0. For @samp{%x} and @samp{%X}
886 the result is prefixed with @samp{0x} or @samp{0X}. For @samp{%e}, 886 the result is prefixed with @samp{0x} or @samp{0X}. For @samp{%e},
887 @samp{%f}, and @samp{%g} a decimal point is always shown even if the 887 @samp{%f}, and @samp{%g} a decimal point is always shown even if the
888 precision is zero. 888 precision is zero.
889 889