Currency Formatter Object Members

Documentation article about Currency Formatter Object Members

·1 min read·View Oracle Docs

Currency Formatter Object Members

Currency Formatter Object Members

The following members are called on the format.CurrencyFormatter object.

Member Type

Name

Return Type / Value Type

Supported Script Types

Description

Property

CurrencyFormatter.currency

string

Client and server scripts

Indicates the currency code.

CurrencyFormatter.locale

string

Client and server scripts

The locale of the currency formatter.

CurrencyFormatter.symbol

string

Client and server scripts

Indicates the currency symbol.

CurrencyFormatter.numberFormatter

object

Client and server scripts

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

CurrencyFormatter.format(options)

string

Client and server scripts

Formats the number to the currency string.

Frequently Asked Questions (4)

What script types support the CurrencyFormatter object members?
The CurrencyFormatter object members support both client and server scripts.
Which module provides the CurrencyFormatter functionality in SuiteScript 2.x?
The CurrencyFormatter functionality is provided by the N/format/i18n Module in SuiteScript 2.x.
How can I format a number to a currency string using CurrencyFormatter?
You can format a number to a currency string using the CurrencyFormatter.format(options) method. It converts numbers into formatted currency strings.
What is the return type of the CurrencyFormatter.currency property?
The CurrencyFormatter.currency property is a string that indicates the currency code.
Source: Currency Formatter Object Members Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in General

View all General articles →