Modules

filter

 

Objects/Functions

module (N/format/i18n)

SuiteScript 2.0

format.CurrencyFormatter

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=format.CurrencyFormatter for more information.

N/format/i18n Module
format.CurrencyFormatter
Object Description: The object that formats the number to currency string.
Supported Script Types: Client and server-side scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/format/i18n Module
Methods and Properties: N/format/i18n Module Members
Since: 2019.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=format.CurrencyFormatter

Example:

// Code Example 1
// Add additional code
//...
require(['N/format/i18n'],
function(format) {
var curFormatter = format.getCurrencyFormatter({currency: "USD"});
});...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1558024548.html