Module: util/bignum
References
default
Renames and re-exports Decimal
Type aliases
DecimalSource
Ƭ DecimalSource: DecimalSource
Defined in
profectus/src/util/bignum.ts:18
Functions
commaFormat
▸ commaFormat(num
, precision
): string
Parameters
Name | Type |
---|---|
num | DecimalSource |
precision | number |
Returns
string
Defined in
profectus/src/util/break_eternity.ts:28
exponentialFormat
▸ exponentialFormat(num
, precision
, mantissa?
): string
Parameters
Name | Type | Default value |
---|---|---|
num | DecimalSource | undefined |
precision | number | undefined |
mantissa | boolean | true |
Returns
string
Defined in
profectus/src/util/break_eternity.ts:9
format
▸ format(num
, precision?
, small?
): string
Parameters
Name | Type |
---|---|
num | DecimalSource |
precision? | number |
small? | boolean |
Returns
string
Defined in
profectus/src/util/break_eternity.ts:69
formatSmall
▸ formatSmall(x
, precision?
): string
Parameters
Name | Type |
---|---|
x | DecimalSource |
precision? | number |
Returns
string
Defined in
profectus/src/util/break_eternity.ts:185
formatTime
▸ formatTime(seconds
): string
Parameters
Name | Type |
---|---|
seconds | DecimalSource |
Returns
string
Defined in
profectus/src/util/break_eternity.ts:130
formatWhole
▸ formatWhole(num
): string
Parameters
Name | Type |
---|---|
num | DecimalSource |
Returns
string
Defined in
profectus/src/util/break_eternity.ts:116
invertOOM
▸ invertOOM(x
): Decimal
Parameters
Name | Type |
---|---|
x | DecimalSource |
Returns
Defined in
profectus/src/util/break_eternity.ts:189
regularFormat
▸ regularFormat(num
, precision
): string
Parameters
Name | Type |
---|---|
num | DecimalSource |
precision | number |
Returns
string
Defined in
profectus/src/util/break_eternity.ts:43
toPlaces
▸ toPlaces(x
, precision
, maxAccepted
): string
Parameters
Name | Type |
---|---|
x | DecimalSource |
precision | number |
maxAccepted | DecimalSource |
Returns
string