Searched refs:subtract (Results 1 - 20 of 20) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigIntegerSubtractTest.java28 * Method: subtract
43 BigInteger result = aNumber.subtract(bNumber);
64 BigInteger result = aNumber.subtract(bNumber);
86 BigInteger result = aNumber.subtract(bNumber);
108 BigInteger result = aNumber.subtract(bNumber);
129 BigInteger result = aNumber.subtract(bNumber);
150 BigInteger result = aNumber.subtract(bNumber);
172 BigInteger result = aNumber.subtract(bNumber);
194 BigInteger result = aNumber.subtract(bNumber);
215 BigInteger result = aNumber.subtract(bNumbe
[all...]
H A DBigIntegerHashCodeTest.java42 aNumber1.subtract(aNumber2).shiftRight(125);
H A DBigIntegerTest.java111 .setBit(16).subtract(two)));
125 .setBit(16).subtract(two)));
128 .setBit(16).subtract(two).negate()));
461 assertTrue(">>1 == /2", f.subtract(one).divide(two).equals(e));
936 || r.equals(mod.subtract(i2)));
947 BigInteger k = j.subtract(two);
H A DBigDecimalTest.java740 * @tests java.math.BigDecimal#subtract(java.math.BigDecimal)
745 BigDecimal result = sub1.subtract(sub2);
749 BigDecimal result2 = sub2.subtract(sub1);
757 result = sub1.subtract(sub2);
761 result = sub1.subtract(sub2);
766 result = sub1.subtract(sub2);
H A DOldBigIntegerTest.java109 // q = p.subtract(BigInteger.ONE).divide(TWO);
209 BigInteger wpMinusOne = wp.subtract(BigInteger.ONE);
H A DBigDecimalArithmeticTest.java29 * Methods: add, subtract, multiply, divide
183 BigDecimal result = aNumber.subtract(bNumber);
201 BigDecimal result = aNumber.subtract(bNumber, mc);
218 BigDecimal result = aNumber.subtract(bNumber);
235 BigDecimal result = aNumber.subtract(bNumber);
254 BigDecimal result = aNumber.subtract(bNumber, mc);
271 BigDecimal result = aNumber.subtract(bNumber);
290 BigDecimal result = aNumber.subtract(bNumber, mc);
/libcore/ojluni/src/main/java/java/util/stream/
H A DLongStream.java796 BigInteger.valueOf(endExclusive).subtract(BigInteger.valueOf(startInclusive))
834 BigInteger.valueOf(endInclusive).subtract(BigInteger.valueOf(startInclusive))
/libcore/luni/src/test/java/libcore/java/math/
H A DBigDecimalTest.java93 assertEquals(0, a.subtract(b).signum());
260 assertEquals("a - (-b)", expectedSumAsString, bigA.subtract(bigMinusB).toString());
261 assertEquals("b - (-a)", expectedSumAsString, bigB.subtract(bigMinusA).toString());
336 assertEquals(bigHalfValue, bigValue.subtract(bigHalfValue));
H A DOldBigDecimalArithmeticTest.java61 a.round(mc).subtract(b.round(mc)).toString());
62 res = a.subtract(b, mc);
70 res = a.subtract(b, mc);
/libcore/luni/src/main/java/java/math/
H A DBigDecimal.java816 tempBI = larger.getUnscaledValue().subtract(
836 public BigDecimal subtract(BigDecimal subtrahend) { method in class:BigDecimal
857 return new BigDecimal(this.getUnscaledValue().subtract(subtrahend.getUnscaledValue()), this.scale);
864 return new BigDecimal(this.getUnscaledValue().subtract(
873 .subtract(subtrahend.getUnscaledValue()), subtrahend.scale);
889 public BigDecimal subtract(BigDecimal subtrahend, MathContext mc) { method in class:BigDecimal
897 return subtract(subtrahend).round(mc);
901 // Cases where it is unnecessary to subtract two numbers with very different scales
908 tempBI = this.getUnscaledValue().subtract(BigInteger.valueOf(thisSignum));
918 return subtract(subtrahen
[all...]
H A DBigInteger.java431 public BigInteger subtract(BigInteger value) { method in class:BigInteger
/libcore/luni/src/test/java/libcore/java/lang/
H A DMathTest.java147 BigInteger expected = BigInteger.valueOf(a).subtract(BigInteger.valueOf(b));
180 BigInteger expected = BigInteger.valueOf(a).subtract(BigInteger.ONE);
H A DStrictMathTest.java108 BigInteger expected = BigInteger.valueOf(a).subtract(BigInteger.valueOf(b));
H A DLongTest.java186 BigInteger.valueOf(2).shiftLeft(63).subtract(BigInteger.ONE)
/libcore/ojluni/src/main/java/sun/security/util/
H A DObjectIdentifier.java369 BigInteger second = big.subtract(BigInteger.valueOf(80));
436 sb.append(big.subtract(BigInteger.valueOf(80)));
/libcore/luni/src/main/java/javax/xml/datatype/
H A DDuration.java68 * subtract 15 days from 1 month. See the javadoc of those methods
449 * <p>Since there's no way to meaningfully subtract 1 day from 1 month,
485 * @see #subtract(Duration)
576 * <p>Since there's no way to meaningfully subtract 1 day from 1 month,
599 * @param rhs <code>Duration</code> to subtract from this <code>Duration</code>.
613 public Duration subtract(final Duration rhs) { method in class:Duration
/libcore/luni/src/test/java/libcore/java/text/
H A DNumberFormatTest.java66 assertEquals("double", nf.format(BigInteger.valueOf(Long.MIN_VALUE).subtract(BigInteger.ONE)));
/libcore/jsr166-tests/src/test/java/jsr166/
H A DCompletableFutureTest.java431 static Integer subtract(Integer x, Integer y) { method in class:CompletableFutureTest
443 value = subtract(x, y);
453 return value = subtract(x, y);
491 value = subtract(x, y);
513 value = subtract(x, y);
1626 checkCompletedNormally(h1, subtract(w1, w1));
1627 checkCompletedNormally(h3, subtract(w1, w1));
1628 rs[1].assertValue(subtract(w1, w1));
1629 rs[3].assertValue(subtract(w1, w1));
1633 checkCompletedNormally(h0, subtract(v
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKPeriod.java779 public void test_minus_TemporalAmount(Period base, Period subtract, Period expected) { argument
780 assertEquals(base.minus(subtract), expected);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DDecimalFormatTest.java639 bigDecimal = new BigDecimal(Float.MIN_VALUE).subtract(new BigDecimal(Float.MIN_VALUE));

Completed in 742 milliseconds