Modules

filter

 

Objects/Functions

module (N/format/i18n)

SuiteScript 2.0

NumberFormatter.decimalSeparator

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

N/format/i18n Module
NumberFormatter.decimalSeparator
Property Description: Indicates the decimal separator.
Type: string (read-only)
Module: N/format/i18n Module
Parent Object: format.CurrencyFormatter
Sibling Object Members: N/format/i18n Module Members
Since: 2019.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=NumberFormatter.decimalSeparator

Example:

// Code Example 1
// Add additional code
//...
require(['N/format/i18n'],
function(format) {
var numFormatter = format.getNumberFormatter({
groupSeparator: " ",
decimalSeparator: ",",
precision: 2,
negativeNumberFormat: format.NegativeNumberFormat.MINUS});
var decimalSep = numFormatter.decimalSeparator;
});...
// Add additional code

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