Module: util/break_eternity
References
default
Renames and re-exports Decimal
Functions
commaFormat
▸ commaFormat(num
, precision
): string
Parameters
Name | Type |
---|---|
num | DecimalSource |
precision | number |
Returns
string
Defined in
profectus/src/util/break_eternity.ts:27
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:8
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:65
formatSmall
▸ formatSmall(x
, precision?
): string
Parameters
Name | Type |
---|---|
x | DecimalSource |
precision? | number |
Returns
string
Defined in
profectus/src/util/break_eternity.ts:181
formatTime
▸ formatTime(seconds
): string
Parameters
Name | Type |
---|---|
seconds | DecimalSource |
Returns
string
Defined in
profectus/src/util/break_eternity.ts:126
formatWhole
▸ formatWhole(num
): string
Parameters
Name | Type |
---|---|
num | DecimalSource |
Returns
string
Defined in
profectus/src/util/break_eternity.ts:112
invertOOM
▸ invertOOM(x
): Decimal
Parameters
Name | Type |
---|---|
x | DecimalSource |
Returns
Defined in
profectus/src/util/break_eternity.ts:185
regularFormat
▸ regularFormat(num
, precision
): string
Parameters
Name | Type |
---|---|
num | DecimalSource |
precision | number |
Returns
string
Defined in
profectus/src/util/break_eternity.ts:42
toPlaces
▸ toPlaces(x
, precision
, maxAccepted
): string
Parameters
Name | Type |
---|---|
x | DecimalSource |
precision | number |
maxAccepted | DecimalSource |
Returns
string