Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
23
function
bigintAbs(n: bigint): bigint {
24
return
n < 0n ? -n : n
25
}
26
27
function
digitCount(n: bigint): number {
28
if
(n === 0n)
return
1
Callers
3
abs
Method · 0.85
_log10
Method · 0.85
toString
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected