MCPcopy
hub / github.com/formatjs/formatjs / bigintAbs

Function bigintAbs

packages/bigdecimal/index.ts:23–25  ·  view source on GitHub ↗
(n: bigint)

Source from the content-addressed store, hash-verified

21}
22
23function bigintAbs(n: bigint): bigint {
24 return n < 0n ? -n : n
25}
26
27function digitCount(n: bigint): number {
28 if (n === 0n) return 1

Callers 3

absMethod · 0.85
_log10Method · 0.85
toStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected