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

Method equiv

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

Source from the content-addressed store, hash-verified

813 }
814
815 public boolean equiv(Number x, Number y){
816 Ratio rx = toRatio(x);
817 Ratio ry = toRatio(y);
818 return rx.numerator.equals(ry.numerator)
819 && rx.denominator.equals(ry.denominator);
820 }
821
822 public boolean lt(Number x, Number y){
823 Ratio rx = toRatio(x);

Callers

nothing calls this directly

Calls 2

toRatioMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected