Number to Fixed Decimal String | NUMBER_TO_STRING
Syntax
NUMBER_TO_STRING( [value], [fixedLength = undefined] )
Parameters
value
A number or value convertible to a number.
decimals optional
The number of decimal digits to include in the converted string.
Return Value
VALUE converted to a string with DECIMALS number of decimal digits if provided.Description
Converts a number to a string. The converted value may optionally be limited to provided number of decimal digits.Examples
NUMBER_TO_STRING(1) # returns "1"
NUMBER_TO_STRING("1") # returns "1"
NUMBER_TO_STRING(1.25) # returns "1.25"
NUMBER_TO_STRING(1.25, 1) # returns "1.3"
NUMBER_TO_STRING("NOT A NUMBER", 2) # returns "NaN"