Num - script and chart function
Num() formats a number, that is it converts the numeric value of the input to display text using the format specified in the second parameter. If the second parameter is omitted, it uses the decimal and thousand separators set in the data load script. Custom decimal and thousand separator symbols are optional parameters.
Syntax:
Num(number[, format[, dec_sep [, thou_sep]]])
Return data type: dual
The Num function returns a dual value with both the string and the numeric value. The function takes the numeric value of the input expression and generates a string representing the number.
Arguments:
Argument | Description |
---|---|
number |
The number to be formatted. |
format |
String specifying how the resulting string is to be formatted. If omitted, the decimal and thousand separators that are set in the data load script are used. |
dec_sep |
String specifying the decimal number separator. If omitted, the value of the variable DecimalSep that is set in the data load script is used. |
thou_sep |
String specifying the thousands number separator. If omitted, the value of the variable ThousandSep that is set in the data load script is used. |
For more information on number formatting see Conventions for number and time formats.