Top | Previous | Next |
Strings / numberFormat |
numberFormat(number, pattern) Returns a string version of the number argument, formatted as specified by the pattern string. This is commonly used to specify the number of decimal places to display, but can be used for more advanced formatting as well. The pattern string is a numeric format string, which may include any of these characters that instruct it how to format the number.
This table shows some numbers, and the result of using various format strings to format them.
Example: numberFormat(34.8, "#0.00'%'") ... returns the string "34.80%" |