Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ReadyTalk/avian
/ abs
Method
abs
classpath/java/lang/Math.java:54–56 ·
view source on GitHub ↗
(int v)
Source
from the content-addressed store, hash-verified
52
}
53
54
public
static
int
abs(
int
v) {
55
return
(v < 0 ? -v : v);
56
}
57
58
public
static
long abs(long v) {
59
return
(v < 0 ? -v : v);
Callers
3
main
Method · 0.95
gcd
Method · 0.95
abs
Method · 0.95
Calls
no outgoing calls
Tested by
3
main
Method · 0.76
gcd
Method · 0.76
abs
Method · 0.76