Format Symbol | Data Type | Display Syntax | Display Format Description |
---|---|---|---|
c | character date | [+|*|‑]c[f|j] [e]n[.w] | Character format, which determines the size and shape of character fields. |
d | date | [+|*|‑]d 'template' | Date template, specifying an absolute date and time or time interval. |
e | decimal float integer money | [+|*|‑]ew[.d] | Scientific (exponential) notation format, which displays numbers as [‑]m.dddddE|e[+|‑]ppp in which m represents the mantissa, d represents a digit in the fraction, and p is an exponential digit. When specifying the width of the field (w), be sure to include five spaces for E+ppp. |
f | decimal float integer money | [+|*|‑]fw[.d] | Floating point format, which displays a number in standard decimal format. |
g | decimal float integer money | [+|*|‑]gw[.d] | Displays the number in floating point format (f) if there is room; otherwise, displays it in scientific notation (e). Data is first formatted so that the decimal point will align in both f and e format. (Note that this reduces the space available for display in floating point format compared to n format). The data is then justified as specified (default is right justified). |
i | decimal float integer money | [+|*|‑]iw | Integer format, which displays the number as an integer. |
n | decimal float integer money | [+|*|‑]nw[.d] | Displays the number in floating point format (f) if there is room; otherwise, displays it in scientific notation (e). Unlike g format, data is not first formatted so that the decimal point will align in both f and e format. The data is justified as specified (default is right justified). |
numeric template | decimal float integer money | [+|*|‑}['{c}'] | Numeric template containing character codes indicating the characters allowed in each position. |
string template | c char text varchar | String character template containing character codes indicating the characters allowed in each position. |