MCPcopy 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

mainMethod · 0.95
gcdMethod · 0.95
absMethod · 0.95

Calls

no outgoing calls

Tested by 3

mainMethod · 0.76
gcdMethod · 0.76
absMethod · 0.76