(gawk.info.gz) Printf

Info Catalog (gawk.info.gz) OFMT (gawk.info.gz) Printing (gawk.info.gz) Redirection
 
 4.5 Using `printf' Statements for Fancier Printing
 ==================================================
 
 For more precise control over the output format than what is normally
 provided by `print', use `printf'.  `printf' can be used to specify the
 width to use for each item, as well as various formatting choices for
 numbers (such as what output base to use, whether to print an exponent,
 whether to print a sign, and how many digits to print after the decimal
 point).  This is done by supplying a string, called the "format
 string", that controls how and where to print the other arguments.
 

Menu

 
* Basic Printf                Syntax of the `printf' statement.
* Control Letters             Format-control letters.
* Format Modifiers            Format-specification modifiers.
* Printf Examples             Several examples.
 
Info Catalog (gawk.info.gz) OFMT (gawk.info.gz) Printing (gawk.info.gz) Redirection
automatically generated by info2html