Print Function Flags

Table 1 describes the flag characters and their meanings for D(n,p) conversions.

Table 1. Flag Meanings for Printing the Value of a _DecimalT Class Template Object
Flag Meaning
# The result always contains a decimal-point character, even if no digits follow it.
0 Leading zeros (following any indication of sign or base) are used to pad to the field width; no space padding is performed.
- The result is always left-justified within the field.
+ The result always begins with a plus or minus sign.
space The result is always prefixed with a space where the result of a signed conversion is no sign or the signed conversion results in no characters.