rbv_api.formatNumber()
Purpose
Formats a decimal number to a string according to the specified parameters.
Syntax
rbv_api.formatNumber(number, decPlaces,
decSeparator, thSeparator)
Parameters
number
Number to be formatted
decPlaces
Number of decimal places to be used
decSeparator
Separator to use for decimal places
thSeparator
Character separator to use for thousands
Return value
Number as a formatted string.
Example
var x = rbv_api.formatNumber(7000123.45, 2, ",", "."); rbv_api.println("x="+x); Output: x=7.000.123,45