MCPcopy Index your code
hub / github.com/clojure/clojure / abs

Method abs

src/jvm/clojure/lang/Numbers.java:1081–1087  ·  view source on GitHub ↗
(Number x)

Source from the content-addressed store, hash-verified

1079 }
1080
1081 public Number abs(Number x) {
1082 MathContext mc = (MathContext) MATH_CONTEXT.deref();
1083 BigDecimal bx = (BigDecimal) x;
1084 return mc == null
1085 ? ((BigDecimal) x).abs()
1086 : ((BigDecimal) x).abs(mc);
1087 }
1088}
1089
1090static final LongOps LONG_OPS = new LongOps();

Callers

nothing calls this directly

Calls 2

derefMethod · 0.65
absMethod · 0.65

Tested by

no test coverage detected