Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortex-js/compute-engine
/ abs
Function
abs
src/compute-engine/numerics/diophantine.ts:46–48 ·
view source on GitHub ↗
(n: bigint)
Source
from the content-addressed store, hash-verified
44
//
45
46
function
abs(n: bigint): bigint {
47
return
n < 0n ? -n : n;
48
}
49
50
function
sign(n: bigint): bigint {
51
return
n > 0n ? 1n : n < 0n ? -1n : 0n;
Callers
6
gcd
Function · 0.70
divisors
Function · 0.70
squareFactor
Function · 0.70
baseSolutionLinear
Function · 0.70
specialDiopDN
Function · 0.70
diopDNGeneral
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected