Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
printf Precision: Integer Types
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Integer types are d, i, u, o, x, and X.
See: ◄printf Type Characters►
With these types, the precision value specifies the minimum number
of digits printed. If the number of digits in the argument is less
than the precision value, the output value is padded on the left
with zeros. The value is not truncated if the number of digits
exceeds the precision value.
If the precision value is 0 or is omitted entirely, or if the
period (.) appears with no number following it, the precision is
set to 1.
-♦-