MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / bigintAbs

Function bigintAbs

src/big-decimal/utils.ts:186–188  ·  view source on GitHub ↗
(n: bigint)

Source from the content-addressed store, hash-verified

184
185/** Absolute value of a bigint. */
186export function bigintAbs(n: bigint): bigint {
187 return n < 0n ? -n : n;
188}
189
190/** Sign of a bigint: -1n, 0n, or 1n. */
191export function bigintSign(n: bigint): bigint {

Callers 12

utils.test.tsFile · 0.90
transcendentals.tsFile · 0.90
fpexp10Function · 0.90
fpexp2Function · 0.90
grid10FromFP2Function · 0.90
runExpFunction · 0.90
runSinCosFunction · 0.90
fpsqrtFunction · 0.85
isqrtGiantFunction · 0.85
fplnAGMFunction · 0.85
bigintSqrtFunction · 0.85
fpsincosFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected