Formatting API in SuiteScript 2.0
The format.getCurrencyFormatter
and format.getNumberFormatter
methods in the N/format/i18n
module have an options.locale
parameter. You can use options.locale
to format numbers and currencies for the right region by setting the right locale. For example, if you set the locale to en_IN (English-India), all numbers and currencies follow the Indian number formatting system.
For more information, see N/format/i18n Module.
For more information about worldwide formatting in the UI, see Worldwide Support for Phone Number Formatting.