profectus-docs/assets/api_modules_util_bignum.md.6badd954.js

2 lines
11 KiB
JavaScript
Raw Normal View History

import{_ as e,c as t,o as a,a as r}from"./app.ab34650d.js";const g=JSON.parse('{"title":"Module: util/bignum","description":"","frontmatter":{"editLink":false},"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","lastUpdated":null}'),d={name:"api/modules/util/bignum.md"},l=r('<h1 id="module-util-bignum" tabindex="-1">Module: util/bignum <a class="header-anchor" href="#module-util-bignum" aria-hidden="true">#</a></h1><h2 id="references" tabindex="-1">References <a class="header-anchor" href="#references" aria-hidden="true">#</a></h2><h3 id="default" tabindex="-1">default <a class="header-anchor" href="#default" aria-hidden="true">#</a></h3><p>Re-exports <a href="../../classes/lib/break_eternity.default">default</a></p><h2 id="type-aliases" tabindex="-1">Type Aliases <a class="header-anchor" href="#type-aliases" aria-hidden="true">#</a></h2><h3 id="decimalsource" tabindex="-1">DecimalSource <a class="header-anchor" href="#decimalsource" aria-hidden="true">#</a></h3><p>\u01AC <strong>DecimalSource</strong>: <a href="./../lib/break_eternity.html#decimalsource"><code>DecimalSource</code></a></p><h4 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-hidden="true">#</a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/013092f/src/util/bignum.ts#L18" target="_blank" rel="noopener noreferrer">profectus/src/util/bignum.ts:18</a></p><h2 id="functions" tabindex="-1">Functions <a class="header-anchor" href="#functions" aria-hidden="true">#</a></h2><h3 id="commaformat" tabindex="-1">commaFormat <a class="header-anchor" href="#commaformat" aria-hidden="true">#</a></h3><p>\u25B8 <strong>commaFormat</strong>(<code>num</code>, <code>precision</code>): <code>string</code></p><h4 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-hidden="true">#</a></h4><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>num</code></td><td style="text-align:left;"><a href="./../lib/break_eternity.html#decimalsource"><code>DecimalSource</code></a></td></tr><tr><td style="text-align:left;"><code>precision</code></td><td style="text-align:left;"><code>number</code></td></tr></tbody></table><h4 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-hidden="true">#</a></h4><p><code>string</code></p><hr><h3 id="exponentialformat" tabindex="-1">exponentialFormat <a class="header-anchor" href="#exponentialformat" aria-hidden="true">#</a></h3><p>\u25B8 <strong>exponentialFormat</strong>(<code>num</code>, <code>precision</code>, <code>mantissa?</code>): <code>string</code></p><h4 id="parameters-1" tabindex="-1">Parameters <a class="header-anchor" href="#parameters-1" aria-hidden="true">#</a></h4><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th><th style="text-align:left;">Default value</th></tr></thead><tbody><tr><td style="text-align:left;"><code>num</code></td><td style="text-align:left;"><a href="./../lib/break_eternity.html#decimalsource"><code>DecimalSource</code></a></td><td style="text-align:left;"><code>undefined</code></td></tr><tr><td style="text-align:left;"><code>precision</code></td><td style="text-align:left;"><code>number</code></td><td style=