CurrencyFormatter.numberFormatter

Property Description

Contains the format.NumberFormatter object derived from format.CurrencyFormatter with the same number formatting parameters without currency symbol.

Type

string (read-only)

Module

N/format/i18n Module

Parent Object

format.CurrencyFormatter

Sibling Object Members

N/format/i18n Module Members

Since

2019.2

Syntax

Important:

The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see N/format/i18n Module Script Samples.

            // Add additional code
...
var curFormatter = format.getCurrencyFormatter({
    currency: "USD"
});
var numberFormatter = curFormatter.numberFormatter;

var formattedNumber = numberFormatter.format({
    number: -12.5366
});
// formattedNumber is '(12.54)'
...
// Add additional code 

          

General Notices