Description
Create format.CurrencyFormatter object to format numbers into currency strings.
- Returns –> Object
- Supported Script Types –> Client and server scripts
- Governance –> 10 units
- Module –> N/format/i18n Module
Parameters
- options.currency (required/optional)
- Code of the currency that is used by formatter.
- options.locale (required/optional)
- Code of the locale that is used by formatter.
Warning : These parameters are mutually exclusive, you can always use only one of them.
Error Codes
- SSS_MISSING_REQD_ARGUMENT –> Currency parameter is missing
- SSS_INVALID_CURRENCY –> The currency is not valid
- SSS_INVALID_TYPE_ARG –> The parameter type is wrong
- NEITHER_ARGUMENT_DEFINED –> Both parameters are missing
- MUTUALLY_EXCLUSIVE_ARGUMENTS –> Multiple mutually exclusive parameters have been set as required or optional
- INVALID_LOCALE –> The locale is not valid