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

Function abs

test/big-decimal/big-decimal.test.ts:2210–2210  ·  view source on GitHub ↗
(n: bigint)

Source from the content-addressed store, hash-verified

2208
2209describe('digitCount() cache', () => {
2210 const abs = (n: bigint) => (n < 0n ? -n : n);
2211
2212 test('matches bigintDigits(|significand|) across constructions', () => {
2213 const samples: BigDecimal[] = [

Callers 10

ulp_doubleFunction · 0.50
compare.pyFile · 0.50
real_rootsFunction · 0.50
run_sympyFunction · 0.50
mantexpFunction · 0.50
mainFunction · 0.50
mantexp_valuesFunction · 0.50
real_numeric_rootsFunction · 0.50
classifyFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected