import{_ as e,c as t,o as a,N as r}from"./chunks/framework.0799945b.js";const m=JSON.parse('{"title":"Module: util/bignum","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/util/bignum.md","lastUpdated":null}'),o={name:"api/modules/util/bignum.md"},i=r('

Module: util/bignum

References

default

default: Object

Defined in

profectus/src/util/bignum.ts:46

Type Aliases

DecimalSource

Ƭ DecimalSource: DecimalSource

Defined in

profectus/src/util/bignum.ts:18

Functions

commaFormat

commaFormat(num, precision): string

Parameters

NameType
numDecimalSource
precisionnumber

Returns

string

Defined in

profectus/src/util/break_eternity.ts:28

commaFormat: (num: DecimalSource, precision: number) => string

Defined in

profectus/src/util/bignum.ts:8


exponentialFormat

exponentialFormat(num, precision, mantissa?): string

Parameters

NameTypeDefault value
numDecimalSourceundefined
precisionnumberundefined
mantissabooleantrue

Returns

string

Defined in

profectus/src/util/break_eternity.ts:9

exponentialFormat: (num: DecimalSource, precision: number, mantissa: boolean) => string

Defined in

profectus/src/util/bignum.ts:7


format

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

Parameters

NameType
numDecimalSource
precision?number
small?boolean

Returns

string

Defined in

profectus/src/util/break_eternity.ts:69

format: (num: DecimalSource, precision?: number, small?: boolean) => string

Defined in

profectus/src/util/bignum.ts:10


formatSmall

formatSmall(x, precision?): string

Parameters

NameType
xDecimalSource
precision?number

Returns

string

Defined in

profectus/src/util/break_eternity.ts:185

formatSmall: (x: DecimalSource, precision?: number) => string

Defined in

profectus/src/util/bignum.ts:14


formatTime

formatTime(seconds): string

Parameters

NameType
secondsDecimalSource

Returns

string

Defined in

profectus/src/util/break_eternity.ts:130

formatTime: (seconds: DecimalSource) => string

Defined in

profectus/src/util/bignum.ts:12


formatWhole

formatWhole(num): string

Parameters

NameType
numDecimalSource

Returns

string

Defined in

profectus/src/util/break_eternity.ts:116

formatWhole: (num: DecimalSource) => string

Defined in

profectus/src/util/bignum.ts:11


invertOOM

invertOOM(x): default

Parameters

NameType
xDecimalSource

Returns

default

Defined in

profectus/src/util/break_eternity.ts:189

invertOOM: (x: DecimalSource) => default

Defined in

profectus/src/util/bignum.ts:15


regularFormat

regularFormat(num, precision): string

Parameters

NameType
numDecimalSource
precisionnumber

Returns

string

Defined in

profectus/src/util/break_eternity.ts:43

regularFormat: (num: DecimalSource, precision: number) => string

Defined in

profectus/src/util/bignum.ts:9


toPlaces

toPlaces(x, precision, maxAccepted): string

Parameters

NameType
xDecimalSource
precisionnumber
maxAcceptedDecimalSource

Returns

string

Defined in

profectus/src/util/break_eternity.ts:173

toPlaces: (x: DecimalSource, precision: number, maxAccepted: DecimalSource) => string

Defined in

profectus/src/util/bignum.ts:13

',119),n=[i];function d(c,l,s,h,u,f){return a(),t("div",null,n)}const p=e(o,[["render",d]]);export{m as __pageData,p as default};