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

Method toBigInteger

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

Source from the content-addressed store, hash-verified

285}
286
287@WarnBoxedMath(false)
288static BigInteger toBigInteger(Object x){
289 if(x instanceof BigInteger)
290 return (BigInteger) x;
291 else if(x instanceof BigInt)
292 return ((BigInt) x).toBigInteger();
293 else
294 return BigInteger.valueOf(((Number) x).longValue());
295}
296
297@WarnBoxedMath(false)
298static BigDecimal toBigDecimal(Object x){

Callers 10

toRatioMethod · 0.95
quotientMethod · 0.45
remainderMethod · 0.45
divideMethod · 0.45
lteMethod · 0.45
gteMethod · 0.45
negateMethod · 0.45
incMethod · 0.45
decMethod · 0.45
absMethod · 0.45

Calls 2

valueOfMethod · 0.45
longValueMethod · 0.45

Tested by

no test coverage detected