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

Method negateP

src/jvm/clojure/lang/Numbers.java:583–588  ·  view source on GitHub ↗
(Number x)

Source from the content-addressed store, hash-verified

581 }
582
583 final public Number negateP(Number x){
584 long val = x.longValue();
585 if(val > Long.MIN_VALUE)
586 return num(-val);
587 return BigInt.fromBigInteger(BigInteger.valueOf(val).negate());
588 }
589
590 final public Number unchecked_negate(Number x){
591 long val = x.longValue();

Callers

nothing calls this directly

Calls 5

fromBigIntegerMethod · 0.95
numMethod · 0.80
negateMethod · 0.65
longValueMethod · 0.45
valueOfMethod · 0.45

Tested by

no test coverage detected