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
Name | Type |
---|---|
decimals | number |
unit | UnitPrefix |
Returns
Defined in
Properties
decimals
• Private
decimals: number
Defined in
unit
• Private
unit: UnitPrefix
Defined in
Methods
format
▸ format(lgnt
): string
Parameters
Name | Type |
---|---|
lgnt | Lgnt |
Returns
string