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