Go forward to Redirection.
Go backward to OFMT.
Go up to Printing.
Using `printf' Statements for Fancier Printing
==============================================
If you want more precise control over the output format than `print'
gives you, use `printf'. With `printf' you can specify the width to
use for each item, and you can specify various stylistic choices for
numbers (such as what radix to use, whether to print an exponent,
whether to print a sign, and how many digits to print after the decimal
point). You do this by specifying a string, called the "format
string", which 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.