summaryrefslogtreecommitdiffstats
path: root/doc/format.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2006-06-14 14:59:03 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2006-06-14 14:59:03 (GMT)
commitd60e3a9af6b198b47b40a9036dee34f474d23fec (patch)
tree08730c37fa3dfec3902c710d269e289a2e7d5753 /doc/format.n
parent8aa008feecf66fb147b65f564af0dc679facb58a (diff)
downloadtcl-d60e3a9af6b198b47b40a9036dee34f474d23fec.zip
tcl-d60e3a9af6b198b47b40a9036dee34f474d23fec.tar.gz
tcl-d60e3a9af6b198b47b40a9036dee34f474d23fec.tar.bz2
Added examples after prompting on the Tcler's chat.
Diffstat (limited to 'doc/format.n')
-rw-r--r--doc/format.n9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/format.n b/doc/format.n
index f3d45bf..7050ee3 100644
--- a/doc/format.n
+++ b/doc/format.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: format.n,v 1.13 2006/04/25 18:30:55 dgp Exp $
+'\" RCS: @(#) $Id: format.n,v 1.14 2006/06/14 14:59:03 dkf Exp $
'\"
.so man.macros
.TH format n 8.1 Tcl "Tcl Built-In Commands"
@@ -201,6 +201,13 @@ which will then be converted to the corresponding character value.
The size modifiers are ignored when formatting floating-point values.
The \fBll\fR modifier has no \fBsprintf\fR counterpart.
.SH EXAMPLES
+Convert the numeric value of a UNICODE character to the character
+itself:
+.CS
+set value 120
+set char [\fBformat\fR %c $value]
+.CE
+.PP
Convert the output of \fBtime\fR into seconds to an accuracy of
hundredths of a second:
.CS