Skip to main content

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​

Currency.ts:297


LGNT_SMALLEST_UNIT​

• Const LGNT_SMALLEST_UNIT: UnitPrefix = Lgnt.SMALLEST_UNIT_PREFIX

Deprecated

use Lgnt.SMALLEST_UNIT_PREFIX

Defined in​

Currency.ts:293


SYMBOL​

• Const SYMBOL: "LGNT"

Deprecated

use Lgnt.CODE

Defined in​

Currency.ts:301

Functions​

nLgnt​

▸ nLgnt(lgntAmount): PrefixedNumber

Parameters​

NameType
lgntAmountbigint

Returns​

PrefixedNumber

Deprecated

use Lgnt.from(lgntAmount).toPrefixedNumber()

Defined in​

Currency.ts:320


toCanonicalAmount​

▸ toCanonicalAmount(amount): bigint

Parameters​

NameType
amountPrefixedNumber

Returns​

bigint

Deprecated

use Lgnt.fromPrefixedNumber(amount).canonical

Defined in​

Currency.ts:306


toPrefixedNumberAmount​

▸ toPrefixedNumberAmount(canonicalAmount): PrefixedNumber

Parameters​

NameType
canonicalAmountbigint

Returns​

PrefixedNumber

Deprecated

use Lgnt.fromCanonical(canonicalAmount).toCanonicalPrefixedNumber()

Defined in​

Currency.ts:313