CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Eric Blake <ericb>      06/07/17 13:26:09

Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- doc/m4.texinfo      15 Jul 2006 21:35:37 -0000      1.26
+++ doc/m4.texinfo      17 Jul 2006 13:26:09 -0000      1.27
@@ -3464,6 +3464,10 @@
 @result{}
 format(`The string "%s" uses %d characters', foo, len(foo))
 @result{}The string "The brown fox jumped over the lazy dog" uses 38 characters
+format(`%.0f', `56789.9876')
[EMAIL PROTECTED]
+len(format(`%-*X', `5000', `1'))
[EMAIL PROTECTED]
 @end example
 
 Using the @code{forloop} macro defined in @xref{Loops}, this
@@ -3488,11 +3492,14 @@
 The builtin @code{format} is modeled after the ANSI C @samp{printf}
 function, and supports the normal @samp{%} specifiers: @samp{c},
 @samp{s}, @samp{d}, @samp{o}, @samp{x}, @samp{X}, @samp{u}, @samp{e},
[EMAIL PROTECTED] and @samp{f}; it supports field widths and precisions, and the
[EMAIL PROTECTED], @samp{f}, @samp{F}, @samp{g}, and @samp{G}; it supports
+field widths and precisions, and the
 modifiers @samp{+}, @samp{-}, @[EMAIL PROTECTED] }}, @samp{0}, @samp{#}, 
@samp{h} and
 @samp{l}.  For more details on the functioning of @code{printf}, see the
 C Library Manual.
 
[EMAIL PROTECTED] FIXME - format still needs some improvements.
+
 @node Arithmetic
 @chapter Macros for doing arithmetic
 


Reply via email to