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

Method remainder

src/jvm/clojure/lang/Numbers.java:806–813  ·  view source on GitHub ↗
(Number x, Number y)

Source from the content-addressed store, hash-verified

804 }
805
806 public Number remainder(Number x, Number y){
807 Ratio rx = toRatio(x);
808 Ratio ry = toRatio(y);
809 BigInteger q = rx.numerator.multiply(ry.denominator).divide(
810 rx.denominator.multiply(ry.numerator));
811 Number ret = Numbers.minus(x, Numbers.multiply(q, y));
812 return normalizeRet(ret, x, y);
813 }
814
815 public boolean equiv(Number x, Number y){
816 Ratio rx = toRatio(x);

Callers

nothing calls this directly

Calls 6

minusMethod · 0.95
multiplyMethod · 0.95
normalizeRetMethod · 0.95
toRatioMethod · 0.80
divideMethod · 0.65
multiplyMethod · 0.65

Tested by

no test coverage detected