C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
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
─────Run-Time Library───────────────────────────────────────────────────────
 
     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.
 
     The precision value defaults to 1, but if a period (.) appears
     with no number following it, the precision is set to 0.
                                    -♦-