Modules
Objects/Functions
SuiteScript 2.0
{CurrencyFormatter}.format({number: {number*}})
N/format/i18n Module
CurrencyFormatter.format()
Method Description:
Formats the number to the currency string.
Returns:
String
Supported Script Types:
Client and server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
10 units
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=CurrencyFormatter.format(options)
Example:
// Code Example 1
// Add additional code
//...
require(['N/format/i18n'],
function(format) {
var curFormatter = format.getCurrencyFormatter({currency: "USD"});
log.debug(curFormatter.format({number: 12.53}));
});...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1558031335.html