NumberFormatter.negativeNumberFormat
Property Description |
Indicates the negative number format. |
Type |
enum |
Module |
|
Parent Object |
|
Sibling Object 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 numFormatter = format.getNumberFormatter({
groupSeparator: " ",
decimalSeparator: ",",
precision: 2,
negativeNumberFormat: format.NegativeNumberFormat.MINUS
});
var negNumFormat = numFormatter.negativeNumberFormat; // negNumFormat will be 'MINUS'
...
// Add additional code