rbf_formatNumber()
Purpose
Formats a given number into a decimal string.
Syntax
rbf_formatNumber(value, decPlaces, decSeparator,
thsSep)
Parameters
value
The number to format
decPlaces
The number of decimal places (2 by default)
decSeparator
The symbol used to separate the integer part from the fractional part of a decimal number. ("." by default)
thsSep
The thousands separator (none by default).
Note: This API is supported in portals as well.
Example
var x = rbf_formatNumber(7000123.45,4,'.',',');
Result: 7,000,123.4500