Formatting API in SuiteScript 2.0

The format.getCurrencyFormatter and format.getNumberFormatter methods in the formatting API of the N/format/i18n module include a parameter named options.locale. You can use the options.locale parameter to apply regional formatting of numbers and currencies by setting the proper locale for them. For example, if you use this parameter to set the locale to en_IN (English-India), all numbers and currencies will be formatted according to 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.

Related Topics

General Notices