The integer and floating-point conversions also determine what base to use for the text representation. If a conversion specifier requires a precision p and you do not provide one in the format, then the conversion specifier chooses a default value for the precision. The following table lists all defined combinations and their properties. The print conversion specifier determines any behavior not summarized in this table. In the following descriptions, p is the precision.
Examples follow each of the print conversion specifiers.
A single conversion can generate up to 509 characters. The conversion generates at least p digits to represent the converted value. If p is zero, a converted value of zero generates no digits. The result is rounded. The value zero has a zero exponent.