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

Method add

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

Source from the content-addressed store, hash-verified

771 }
772
773 final public Number add(Number x, Number y){
774 Ratio rx = toRatio(x);
775 Ratio ry = toRatio(y);
776 Number ret = divide(ry.numerator.multiply(rx.denominator)
777 .add(rx.numerator.multiply(ry.denominator))
778 , ry.denominator.multiply(rx.denominator));
779 return normalizeRet(ret, x, y);
780 }
781
782 final public Number multiply(Number x, Number y){
783 Ratio rx = toRatio(x);

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected