Modules
Objects/Functions
SuiteScript 2.0
format.NegativeNumberFormat.{|BRACKETS,MINUS|}
N/format/i18n Module
format.NegativeNumberFormat
Enum Description:
Holds the values for the negative number format.
Type:
enum
Module:
N/format/i18n Module
Sibling Module Members:
N/format/i18n Module Members
Since:
2019.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=format.NegativeNumberFormat
Example:
// Code Example 1
// Add additional code
//...
require(['N/format/i18n'],
function(format) {
var numFormatterM = format.getNumberFormatter({
groupSeparator: " ", decimalSeparator: ",",
precision: 2,
negativeNumberFormat: format.NegativeNumberFormat.MINUS});
var numFormatterB = format.getNumberFormatter({
groupSeparator: " ",
decimalSeparator: ",",
precision: 2,
negativeNumberFormat: format.NegativeNumberFormat.BRACKETS});
});...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1558031974.html