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

Method quotient

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

Source from the content-addressed store, hash-verified

796 }
797
798 public Number quotient(Number x, Number y){
799 Ratio rx = toRatio(x);
800 Ratio ry = toRatio(y);
801 BigInteger q = rx.numerator.multiply(ry.denominator).divide(
802 rx.denominator.multiply(ry.numerator));
803 return normalizeRet(BigInt.fromBigInteger(q), x, y);
804 }
805
806 public Number remainder(Number x, Number y){
807 Ratio rx = toRatio(x);

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected