import{_ as e,c as t,o as a,a as r}from"./app.54d5a277.js";const b='{"title":"Module: util/bignum","description":"","frontmatter":{},"headers":[{"level":2,"title":"References","slug":"references"},{"level":3,"title":"default","slug":"default"},{"level":2,"title":"Type aliases","slug":"type-aliases"},{"level":3,"title":"DecimalSource","slug":"decimalsource"},{"level":2,"title":"Functions","slug":"functions"},{"level":3,"title":"commaFormat","slug":"commaformat"},{"level":3,"title":"exponentialFormat","slug":"exponentialformat"},{"level":3,"title":"format","slug":"format"},{"level":3,"title":"formatSmall","slug":"formatsmall"},{"level":3,"title":"formatTime","slug":"formattime"},{"level":3,"title":"formatWhole","slug":"formatwhole"},{"level":3,"title":"invertOOM","slug":"invertoom"},{"level":3,"title":"regularFormat","slug":"regularformat"},{"level":3,"title":"toPlaces","slug":"toplaces"}],"relativePath":"api/modules/util/bignum.md"}',d={},i=r('

Module: util/bignum

References

default

Renames and re-exports Decimal

Type aliases

DecimalSource

\u01AC DecimalSource: DecimalSource

Defined in

profectus/src/util/bignum.ts:18

Functions

commaFormat

\u25B8 commaFormat(num, precision): string

Parameters

NameType
numDecimalSource
precisionnumber

Returns

string

Defined in

profectus/src/util/break_eternity.ts:27


exponentialFormat

\u25B8 exponentialFormat(num, precision, mantissa?): string

Parameters

NameTypeDefault value
numDecimalSourceundefined
precisionnumberundefined
mantissabooleantrue

Returns

string

Defined in

profectus/src/util/break_eternity.ts:8


format

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

Parameters

NameType
numDecimalSource
precision?number
small?boolean

Returns

string

Defined in

profectus/src/util/break_eternity.ts:65


formatSmall

\u25B8 formatSmall(x, precision?): string

Parameters

NameType
xDecimalSource
precision?number

Returns

string

Defined in

profectus/src/util/break_eternity.ts:181


formatTime

\u25B8 formatTime(seconds): string

Parameters

NameType
secondsDecimalSource

Returns

string

Defined in

profectus/src/util/break_eternity.ts:126


formatWhole

\u25B8 formatWhole(num): string

Parameters

NameType
numDecimalSource

Returns

string

Defined in

profectus/src/util/break_eternity.ts:112


invertOOM

\u25B8 invertOOM(x): Decimal

Parameters

NameType
xDecimalSource

Returns

Decimal

Defined in

profectus/src/util/break_eternity.ts:185


regularFormat

\u25B8 regularFormat(num, precision): string

Parameters

NameType
numDecimalSource
precisionnumber

Returns

string

Defined in

profectus/src/util/break_eternity.ts:42


toPlaces

\u25B8 toPlaces(x, precision, maxAccepted): string

Parameters

NameType
xDecimalSource
precisionnumber
maxAcceptedDecimalSource

Returns

string

Defined in

profectus/src/util/break_eternity.ts:169

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