Searched refs:negate (Results 1 – 11 of 11) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerTest.java | 128 .setBit(16).subtract(two).negate())); in test_ConstructorI$B() 224 assertTrue("bi3=copy of bi3", bi3.equals(bi3.negate().negate())); in test_equalsLjava_lang_Object() 236 two.negate().compareTo(one) < 0); in test_compareToLjava_math_BigInteger() 272 .add(aZillion.negate()).equals(aZillion)); in test_addLjava_math_BigInteger() 306 .negate().equals(zero)); in test_negate() 308 !aZillion.negate().equals(aZillion)); in test_negate() 310 aZillion.negate().negate().equals(aZillion)); in test_negate() 312 assertTrue("0.neg", zero.negate().equals(zero)); in test_negate() 313 assertTrue("1.neg", one.negate().equals(minusOne)); in test_negate() 314 assertTrue("2.neg", two.negate().equals(minusTwo)); in test_negate() [all …]
|
D | BigDecimalTest.java | 372 hash2 = new BigDecimal(value.negate(), 2); in test_hashCode() 400 BigDecimal long1 = new BigDecimal(value2.negate(), 0); in test_longValue() 453 movePtLeft = new BigDecimal(value2.negate(), 0); in test_movePointLeftI() 541 .negate().toString().equals("-1233.4560000")); in test_negate() 543 assertTrue("the negate of -23465839 is not 23465839", negate1.negate() in test_negate() 546 assertTrue("the negate of -3.456E6 is not 3.456E6", negate1.negate() in test_negate() 547 .negate().equals(negate1)); in test_negate() 616 BigDecimal setNeg = new BigDecimal(value.negate(), 4); in test_setScaleII() 754 result.equals(result2.negate())); in test_subtractLjava_math_BigDecimal()
|
D | BigDecimalCompareTest.java | 424 assertEquals("incorrect value", cNumber, aNumber.negate()); in testNegatePositive() 439 BigDecimal res = aNumber.negate(mc); in testNegateMathContextPositive() 454 assertEquals("incorrect value", cNumber, aNumber.negate()); in testNegateNegative() 469 BigDecimal res = aNumber.negate(mc); in testNegateMathContextNegative()
|
D | BigIntegerCompareTest.java | 465 BigInteger result = aNumber.negate(); in testNegatePositive() 482 BigInteger result = aNumber.negate(); in testNegateNegative() 497 BigInteger result = aNumber.negate(); in testNegateZero()
|
D | OldBigIntegerTest.java | 295 .add(aZillion.negate()).equals(aZillion)); in test_addLjava_math_BigInteger()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalCompareTest.java | 59 BigDecimal res = aNumber.negate(mc); in testNegateMathContextPositive()
|
D | OldBigDecimalTest.java | 94 BigDecimal setNeg = new BigDecimal(value.negate(), 4); in test_setScaleILjava_math_RoundingMode()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | Duration.java | 614 return add(rhs.negate()); in subtract() 698 public abstract Duration negate(); in negate() method in Duration
|
/libcore/luni/src/main/java/java/math/ |
D | BigDecimal.java | 841 return subtrahend.negate(); in subtract() 1241 p = p.negate(); in divide() 1681 return ((signum() < 0) ? negate() : this); in abs() 1690 BigDecimal result = (signum() < 0) ? negate() : new BigDecimal(getUnscaledValue(), scale); in abs() 1701 public BigDecimal negate() { in negate() method in BigDecimal 1705 return new BigDecimal(getUnscaledValue().negate(), scale); in negate() 1716 public BigDecimal negate(MathContext mc) { in negate() method in BigDecimal 1717 BigDecimal result = negate(); in negate()
|
D | BigInteger.java | 402 public BigInteger negate() { in negate() method in BigInteger
|
/libcore/benchmarks/libs/ |
D | caliper.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/ ... |