Searched refs:negate (Results 1 - 11 of 11) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigIntegerTest.java128 .setBit(16).subtract(two).negate()));
224 assertTrue("bi3=copy of bi3", bi3.equals(bi3.negate().negate()));
236 two.negate().compareTo(one) < 0);
272 .add(aZillion.negate()).equals(aZillion));
302 * @tests java.math.BigInteger#negate()
306 .negate().equals(zero));
308 !aZillion.negate().equals(aZillion));
310 aZillion.negate().negate()
[all...]
H A DBigDecimalCompareTest.java33 * max, min, negate, signum
415 * negate() for a positive BigDecimal
424 assertEquals("incorrect value", cNumber, aNumber.negate());
428 * negate(MathContext) for a positive BigDecimal
439 BigDecimal res = aNumber.negate(mc);
445 * negate() for a negative BigDecimal
454 assertEquals("incorrect value", cNumber, aNumber.negate());
458 * negate(MathContext) for a negative BigDecimal
469 BigDecimal res = aNumber.negate(mc);
H A DBigDecimalTest.java372 hash2 = new BigDecimal(value.negate(), 2);
400 BigDecimal long1 = new BigDecimal(value2.negate(), 0);
453 movePtLeft = new BigDecimal(value2.negate(), 0);
536 * @tests java.math.BigDecimal#negate()
540 assertTrue("the negate of 1233.4560000 is not -1233.4560000", negate1
541 .negate().toString().equals("-1233.4560000"));
543 assertTrue("the negate of -23465839 is not 23465839", negate1.negate()
546 assertTrue("the negate of -3.456E6 is not 3.456E6", negate1.negate()
[all...]
H A DBigIntegerCompareTest.java28 * Methods: abs, compareTo, equals, max, min, negate, signum
458 * negate() a positive number.
465 BigInteger result = aNumber.negate();
475 * negate() a negative number.
482 BigInteger result = aNumber.negate();
492 * negate() ZERO.
497 BigInteger result = aNumber.negate();
H A DOldBigIntegerTest.java295 .add(aZillion.negate()).equals(aZillion));
/libcore/luni/src/test/java/libcore/java/math/
H A DOldBigDecimalCompareTest.java59 BigDecimal res = aNumber.negate(mc);
H A DOldBigDecimalTest.java94 BigDecimal setNeg = new BigDecimal(value.negate(), 4);
/libcore/luni/src/main/java/javax/xml/datatype/
H A DDuration.java614 return add(rhs.negate());
698 public abstract Duration negate(); method in class:Duration
/libcore/luni/src/main/java/java/math/
H A DBigDecimal.java841 return subtrahend.negate();
1241 p = p.negate();
1681 return ((signum() < 0) ? negate() : this);
1690 BigDecimal result = (signum() < 0) ? negate() : new BigDecimal(getUnscaledValue(), scale);
1701 public BigDecimal negate() { method in class:BigDecimal
1705 return new BigDecimal(getUnscaledValue().negate(), scale);
1716 public BigDecimal negate(MathContext mc) { method in class:BigDecimal
1717 BigDecimal result = negate();
H A DBigInteger.java402 public BigInteger negate() { method in class:BigInteger
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 196 milliseconds