Pre-defined formats | Description |
|---|---|
"currencydigits" | digit characters to 2 decimal places with prefix/suffix currency symbols (e.g. "$1,003.50"). The 2 decimal places are not enforced for whole number currency amounts. |
"currencywords" | the currency value expressed as words (e.g. "One Thousand and Three Dollars and Fifty Cents") |
"currencywordslow" | if the value is between 0-9 then "currencywords" otherwise "currencydigits" equivalent to the format-by-value text "0-9=currencywords|currencydigits" |
"digits" | simply the digit characters for the number (e.g. "1003.5") |
"nth" | the ordinal value expressed as digits (e.g. "1003rd") |
"th" | the suffix for the ordinal value (e.g. "rd") |
"thousands" | the digit characters with thousand-point separators (e.g. "1,003") |
"words" | the cardinal value expressed as words (e.g. "One Thousand and Three") |
"wordslow" | if the value is between 0-9 then "words" otherwise "digits" equivalent to the format-by-value text "0-9=words|digits" |
"wth" | the ordinal value expressed as words (e.g. "One Thousand and Third") |
"wthlow" | if the value is between 0-9 then "wth" otherwise "nth" equivalent to the format-by-value text "0-9=wth|nth" |
"Fraction" | fractional formatting to the nearest half, quarter or eighth as words eg: One Half, Three Quarters or Seven Eigths |
"Fraction/2/3/6/9" | fractional formatting to the nearest half, third , sixth or ninth as words eg: One Third, Seven Ninths |
"Fraction/10" | fractional formatting to the nearest tenth as words eg: Three and One Tenth |
"DecimalWords/N" | the decimal number expressed in words, to N decimal places eg: Forty Six Point Eight Six |
"0,0.00%" | the decimal number expressed in digits as a percentage (e.g. 1,003.05%) |
"prefix whole numberpart decimalpart suffix" | signed numbers |
"prefix - whole numberpart decimalpart suffix" | signed numbers |
"prefix + whole numberpart decimalpart suffix" | unsigned numbers |
"prefix ( whole numberpart decimalpart ) suffix" | bracketed negatives |
Whole number part | Description |
|---|---|
0,0 | with thousand-point characters and with a leading 0 if the whole number part is zero |
0 | without thousand-point characters and with a leading 0 if the whole number part is zero |
0,# | with thousand-point characters and without a leading 0 if the whole number part is zero |
# | without thousand-point characters and without a leading 0 if the whole number part is zero |
Decimal Part | Decimal Places |
|---|---|
.0 | exactly 1 |
.00 | exactly 2 |
.# | at most 1 |
.## | at most 2 |
.0000## | between 4 and 6 |
Value | Format | Output |
|---|---|---|
1003 | "digits" | "1003" |
1003.5 | "digits" | "1003.5" |
1003.005 | "digits" | "1003.005" |
1003 | "thousands" | "1,003" |
1003 | "words" | "One Thousand and Three" |
1003 | "wth" | "One Thousand and Third" |
1003 | "nth" | "1003rd" |
1003 | "th" | "rd" |
1003 | "wordslow" | "1003" |
3 | "wordslow" | "Three" |
1003 | "wthlow" | "1003rd" |
3 | "wthlow" | "Third" |
-1003 | "currencydigits" | "£-1,003" |
-1003.5 | "currencydigits" | "£-1,003.50" |
-1003 | "currencywords" | "Minus One Thousand and Three Pounds" |
-1003.5 | "currencywords" | "Minus One Thousand and Three Pounds and Fifty Pence" |
-1003 | "£0" | "£-1003" |
-1003.5 | "£0" | "£-1003" |
-1003 | "£0.00p" | "£-1003.00p" |
-1003.5 | "£0.00p" | "£-1003.50p" |
-1003 | "£(0.00)p" | "£(1003.00)p" |
-1003.5 | "£(0.00)p" | "£(1003.50)p" |
-1003 | "0" | "-1003" |
-1003 | "0,0" | "-1,003" |
-1003 | "-0" | "-1003" |
-1003 | "-0,0" | "-1,003" |
-1003 | "+0" | "1003" |
-1003 | "+0,0" | "1,003" |
-1003 | "(0)" | "(1003)" |
-1003 | "(0,0)" | "(1,003)" |
1003.0305 | "0" | "1003" |
1003.0305 | "0" | "1003" |
1003.0305 | "0.0" | "1003.0" |
1003.0305 | "0.00" | "1003.03" |
1003.0305 | "0.000" | "1003.031" |
1003.0305 | "0.000" | "1003.031" |
1003.0305 | "0.0000" | "1003.0305" |
1003.0305 | "0.00000000" | "1003.03050000" |
1003.0305 | "0.#" | "1003" |
1003.0305 | "0.##" | "1003.03" |
1003.0305 | "0.###" | "1003.03" |
1003.0305 | "0.####" | "1003.0305" |
1003.0305 | "0.########" | "1003.0305" |
1003.0305 | "0.0#" | "1003.03" |
1003.0305 | "0.0##" | "1003.03" |
1003.0305 | "0.00#" | "1003.03" |
1003.0305 | "0.00##" | "1003.0305" |
1003.0305 | "0.000###" | "1003.0305" |
0.0305 | "0.0#" | "0.03" |
0.0305 | "#.0#" | ".03" |
1003.0305 | "0,0.00%" | "1,003.03%" |
1003.0305 | "0,0.000%" | "1,003.031%" |
0.5 | "fraction/2/4/8" | "One Half" |
0.66 | "fractiondigits" | "5/8" |
0.66 | "fractiondigits/2/3/4" | "2/3" |
46.86 | "decimalwords/2" | "Forty Six Point Eight Six" |