Module:Editor
Version:2.2.1 +
Description
The Formula FormatNumber converts a real number to a string with a specified text format.
Parameters
Number:
This is the number of type long or double that is to be converted.
Format:
This is the desired text format.
Culture (23.11+):
This is the desired culture in which the number is presented. See also 'Formats and cultures' below. If this parameter is empty, the culture from the configuration will be used.
Example
Description
In the following table it is shown how the number 1000 will be represented using a number of formats.
Format |
Output |
0 |
1000 |
0.0 |
1000.0 |
0.00 |
1000.00 |
#,##0 |
1,000 |
#,##0.0 |
1,000.0 |
#,##0.00 |
1,000.00 |