Skip to content
On this page

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

NameType
numDecimalSource
precisionnumber

Defined in

profectus/src/util/bignum.ts:8


exponentialFormat

exponentialFormat(num, precision, mantissa?): string

NameTypeDefault value
numDecimalSourceundefined
precisionnumberundefined
mantissabooleantrue

Defined in

profectus/src/util/bignum.ts:7


format

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

NameType
numDecimalSource
precision?number
small?boolean

Defined in

profectus/src/util/bignum.ts:10


formatSmall

formatSmall(x, precision?): string

NameType
xDecimalSource
precision?number

Defined in

profectus/src/util/bignum.ts:14


formatTime

formatTime(seconds): string

NameType
secondsDecimalSource

Defined in

profectus/src/util/bignum.ts:12


formatWhole

formatWhole(num): string

NameType
numDecimalSource

Defined in

profectus/src/util/bignum.ts:11


invertOOM

invertOOM(x): default

NameType
xDecimalSource

Defined in

profectus/src/util/bignum.ts:15


regularFormat

regularFormat(num, precision): string

NameType
numDecimalSource
precisionnumber

Defined in

profectus/src/util/bignum.ts:9


toPlaces

toPlaces(x, precision, maxAccepted): string

NameType
xDecimalSource
precisionnumber
maxAcceptedDecimalSource

Defined in

profectus/src/util/bignum.ts:13