rbv_api.formatCurrency()
Purpose
Formats a currency number as a string according to the specified parameters.
Syntax
rbv_api.formatCurrency(number, currSymbol,
decPlaces, decSeparator,
thSeparator)
Parameters
number
Number to be formatted
currSymbol
Currency symbol to use in formatted string
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
Example:
var x = rbv_api.formatCurrency(7000123.45, "$ ", 2, ".", " ");
rbv_api.println("x="+x);
Output:
x=$ 7 000 123.45