Skip to main content

Reference / Modules / node-api / Currency / LgntFormatter

Class: LgntFormatter

node-api.Currency.LgntFormatter

A formatter for LGNT amounts. It is parametrized with the number of decimals to display and the unit in which to display the amounts.

Table of contents​

Constructors​

Properties​

Methods​

Constructors​

constructor​

• new LgntFormatter(decimals, unit): LgntFormatter

Parameters​

NameType
decimalsnumber
unitUnitPrefix

Returns​

LgntFormatter

Defined in​

Currency.ts:275

Properties​

decimals​

• Private decimals: number

Defined in​

Currency.ts:280


unit​

• Private unit: UnitPrefix

Defined in​

Currency.ts:282

Methods​

format​

▸ format(lgnt): string

Parameters​

NameType
lgntLgnt

Returns​

string

Defined in​

Currency.ts:284