Module: util/bignum
References
default
Re-exports default
Type Aliases
DecimalSource
Ƭ DecimalSource: DecimalSource
Defined in
profectus/src/util/bignum.ts:18
Functions
commaFormat
▸ commaFormat(num
, precision
): string
Name | Type |
---|---|
num | DecimalSource |
precision | number |
Defined in
profectus/src/util/bignum.ts:8
exponentialFormat
▸ exponentialFormat(num
, precision
, mantissa?
): string
Name | Type | Default value |
---|---|---|
num | DecimalSource | undefined |
precision | number | undefined |
mantissa | boolean | true |
Defined in
profectus/src/util/bignum.ts:7
format
▸ format(num
, precision?
, small?
): string
Name | Type |
---|---|
num | DecimalSource |
precision? | number |
small? | boolean |
Defined in
profectus/src/util/bignum.ts:10
formatSmall
▸ formatSmall(x
, precision?
): string
Name | Type |
---|---|
x | DecimalSource |
precision? | number |
Defined in
profectus/src/util/bignum.ts:14
formatTime
▸ formatTime(seconds
): string
Name | Type |
---|---|
seconds | DecimalSource |
Defined in
profectus/src/util/bignum.ts:12
formatWhole
▸ formatWhole(num
): string
Name | Type |
---|---|
num | DecimalSource |
Defined in
profectus/src/util/bignum.ts:11
invertOOM
▸ invertOOM(x
): default
Name | Type |
---|---|
x | DecimalSource |
Defined in
profectus/src/util/bignum.ts:15
regularFormat
▸ regularFormat(num
, precision
): string
Name | Type |
---|---|
num | DecimalSource |
precision | number |
Defined in
profectus/src/util/bignum.ts:9
toPlaces
▸ toPlaces(x
, precision
, maxAccepted
): string
Name | Type |
---|---|
x | DecimalSource |
precision | number |
maxAccepted | DecimalSource |