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

Method toBigInt

src/jvm/clojure/lang/Numbers.java:277–285  ·  view source on GitHub ↗
(Object x)

Source from the content-addressed store, hash-verified

275}
276
277@WarnBoxedMath(false)
278static BigInt toBigInt(Object x){
279 if(x instanceof BigInt)
280 return (BigInt) x;
281 if(x instanceof BigInteger)
282 return BigInt.fromBigInteger((BigInteger) x);
283 else
284 return BigInt.fromLong(((Number) x).longValue());
285}
286
287@WarnBoxedMath(false)
288static BigInteger toBigInteger(Object x){

Callers 9

isZeroMethod · 0.80
isPosMethod · 0.80
isNegMethod · 0.80
addMethod · 0.80
multiplyMethod · 0.80
quotientMethod · 0.80
remainderMethod · 0.80
equivMethod · 0.80
ltMethod · 0.80

Calls 3

fromBigIntegerMethod · 0.95
fromLongMethod · 0.95
longValueMethod · 0.45

Tested by

no test coverage detected