[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to m4/doc/m4.texinfo,v
From: |
Eric Blake |
Subject: |
Changes to m4/doc/m4.texinfo,v |
Date: |
Mon, 17 Jul 2006 13:26:10 +0000 |
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')
address@hidden
+len(format(`%-*X', `5000', `1'))
address@hidden
@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},
address@hidden and @samp{f}; it supports field widths and precisions, and the
address@hidden, @samp{f}, @samp{F}, @samp{g}, and @samp{G}; it supports
+field widths and precisions, and the
modifiers @samp{+}, @samp{-}, @address@hidden }}, @samp{0}, @samp{#}, @samp{h}
and
@samp{l}. For more details on the functioning of @code{printf}, see the
C Library Manual.
address@hidden FIXME - format still needs some improvements.
+
@node Arithmetic
@chapter Macros for doing arithmetic
- Changes to m4/doc/m4.texinfo,v, Eric Blake, 2006/07/05
- Changes to m4/doc/m4.texinfo,v, Gary V. Vaughan, 2006/07/13
- Changes to m4/doc/m4.texinfo,v, Gary V. Vaughan, 2006/07/14
- Changes to m4/doc/m4.texinfo,v, Eric Blake, 2006/07/15
- Changes to m4/doc/m4.texinfo,v,
Eric Blake <=
- Changes to m4/doc/m4.texinfo,v, Eric Blake, 2006/07/19