Reference / Modules / node-api / Currency
Namespace: Currency
node-api.Currency
Table of contents
Classes
Variables
Functions
Variables
LGNT
• Const
LGNT: bigint
Deprecated
use Lgnt.from(1).canonical
Defined in
LGNT_SMALLEST_UNIT
• Const
LGNT_SMALLEST_UNIT: UnitPrefix
= Lgnt.SMALLEST_UNIT_PREFIX
Deprecated
use Lgnt.SMALLEST_UNIT_PREFIX
Defined in
SYMBOL
• Const
SYMBOL: "LGNT"
Deprecated
use Lgnt.CODE
Defined in
Functions
nLgnt
▸ nLgnt(lgntAmount
): PrefixedNumber
Parameters
Name | Type |
---|---|
lgntAmount | bigint |
Returns
Deprecated
use Lgnt.from(lgntAmount).toPrefixedNumber()
Defined in
toCanonicalAmount
▸ toCanonicalAmount(amount
): bigint
Parameters
Name | Type |
---|---|
amount | PrefixedNumber |
Returns
bigint
Deprecated
use Lgnt.fromPrefixedNumber(amount).canonical
Defined in
toPrefixedNumberAmount
▸ toPrefixedNumberAmount(canonicalAmount
): PrefixedNumber
Parameters
Name | Type |
---|---|
canonicalAmount | bigint |
Returns
Deprecated
use Lgnt.fromCanonical(canonicalAmount).toCanonicalPrefixedNumber()