HomeGuidesRecipesAPI
HomeGuidesAPILog In
Guides
These docs are for v16. Click to read the latest docs for v31.

Named Numeric Formats

When specifying common formats for numbers there are several named terms can be used. For example 'currency' could be used rather than '$0.00'. The terms are useful for the format function or document format property.

Usage

FormatDescription
General NumberDisplay number with no thousand separator
CurrencyDisplay number with a thousand separator, if appropriate; display two digits to the right of the decimal separator. The output is based on system locale settings.
FixedDisplay at least one digit to the left and two digits to the right of the decimal separator.
StandardDisplay number with a thousand separator, at least one digit to the left and two digits to the right of the decimal separator.
PercentDisplay number multiplied by 100 with a percent sign (%) appended to the right; always display two digits to the right of the decimal separator.
ScientificUse standard scientific notation.
Yes/NoDisplay ‘No’ if the number is 0; otherwise, display ‘Yes’.
True/FalseDisplay ’False’ if the number is 0; otherwise, display ‘True’.
On/OffDisplay ‘Off’ if the number is 0; otherwise, display On’.