qc.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 Flags: Radix Indicators, Decimals, Trailing Zeros
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Flag     With Type     Meaning 
 
     #        o, x, X       Prefixes nonzero output with 0, 0x, and OX,
                            respectively. Default is no prefix.
 
              e, E, f       Forces output to contain decimal point. By
                            default, decimal point appears only if
                            digits follow it.
 
              g, G          Forces output to contain decimal point in
                            all cases and prevents truncation of
                            trailing zeros. By default, decimal point
                            appears only if digits follow it, and
                            trailing zeros are omitted.
 
     The # is ignored when used with c, d, i, u, or s.
                                    -♦-