FormatNumber
[this page | pdf]
Function Description
Returns InputValue as a string, formatted
appropriately.
The number of digits after the decimal point is defined by NumberDigitsAfterDecimalPoint.
If IncludeLeadingDigit is true then any fractional values will be
formatted as 0.xxx, otherwise the leading 0 will not be included If UseParensForNegatives
is true then negative numbers will be bracketed by parentheses.
NAVIGATION LINKS
Contents | Prev | Next
Output type / Parameter details
Output type: String
Parameter Name | Variable Type | Description |
InputValue | Double | Value to be formatted |
NumberDigitsAfterDecimalPoint | Integer | Number of digits to include after decimal point |
IncludeLeadingDigit | Boolean | Flag to indicate whether to include a leading 0 for fractional values |
UseParensForNegatives | Boolean | Flag to indicate whether to bracket negative values in parentheses |
Links to:
-
Interactively run function
-
Interactive instructions
-
Example calculation
-
Output type / Parameter details
-
Illustrative spreadsheet
-
Other String functions
-
Computation units used
Note: If you use any Nematrian web service either programmatically or interactively then you will be deemed to have agreed to the Nematrian website License Agreement