Module: util/break_eternity

References

default

Renames and re-exports Decimal

Functions

commaFormat

commaFormat(num, precision): string

Parameters

NameType
numDecimalSource
precisionnumber

Returns

string

Defined in

profectus/src/util/break_eternity.ts:27


exponentialFormat

exponentialFormat(num, precision, mantissa?): string

Parameters

NameTypeDefault value
numDecimalSourceundefined
precisionnumberundefined
mantissabooleantrue

Returns

string

Defined in

profectus/src/util/break_eternity.ts:8


format

format(num, precision?, small?): string

Parameters

NameType
numDecimalSource
precision?number
small?boolean

Returns

string

Defined in

profectus/src/util/break_eternity.ts:65


formatSmall

formatSmall(x, precision?): string

Parameters

NameType
xDecimalSource
precision?number

Returns

string

Defined in

profectus/src/util/break_eternity.ts:181


formatTime

formatTime(seconds): string

Parameters

NameType
secondsDecimalSource

Returns

string

Defined in

profectus/src/util/break_eternity.ts:126


formatWhole

formatWhole(num): string

Parameters

NameType
numDecimalSource

Returns

string

Defined in

profectus/src/util/break_eternity.ts:112


invertOOM

invertOOM(x): Decimal

Parameters

NameType
xDecimalSource

Returns

Decimal

Defined in

profectus/src/util/break_eternity.ts:185


regularFormat

regularFormat(num, precision): string

Parameters

NameType
numDecimalSource
precisionnumber

Returns

string

Defined in

profectus/src/util/break_eternity.ts:42


toPlaces

toPlaces(x, precision, maxAccepted): string

Parameters

NameType
xDecimalSource
precisionnumber
maxAcceptedDecimalSource

Returns

string

Defined in

profectus/src/util/break_eternity.ts:169