Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerSubtractTest.java43 BigInteger result = aNumber.subtract(bNumber); in testCase1()
64 BigInteger result = aNumber.subtract(bNumber); in testCase2()
86 BigInteger result = aNumber.subtract(bNumber); in testCase3()
108 BigInteger result = aNumber.subtract(bNumber); in testCase4()
129 BigInteger result = aNumber.subtract(bNumber); in testCase5()
150 BigInteger result = aNumber.subtract(bNumber); in testCase6()
172 BigInteger result = aNumber.subtract(bNumber); in testCase7()
194 BigInteger result = aNumber.subtract(bNumber); in testCase8()
215 BigInteger result = aNumber.subtract(bNumber); in testCase9()
236 BigInteger result = aNumber.subtract(bNumber); in testCase10()
[all …]
DBigIntegerHashCodeTest.java42 aNumber1.subtract(aNumber2).shiftRight(125); in testSameObject()
DBigDecimalTest.java745 BigDecimal result = sub1.subtract(sub2); in test_subtractLjava_math_BigDecimal()
749 BigDecimal result2 = sub2.subtract(sub1); in test_subtractLjava_math_BigDecimal()
757 result = sub1.subtract(sub2); in test_subtractLjava_math_BigDecimal()
761 result = sub1.subtract(sub2); in test_subtractLjava_math_BigDecimal()
766 result = sub1.subtract(sub2); in test_subtractLjava_math_BigDecimal()
DBigIntegerTest.java111 .setBit(16).subtract(two))); in test_Constructor$B()
125 .setBit(16).subtract(two))); in test_ConstructorI$B()
128 .setBit(16).subtract(two).negate())); in test_ConstructorI$B()
462 assertTrue(">>1 == /2", f.subtract(one).divide(two).equals(e)); in test_shiftRightI()
937 || r.equals(mod.subtract(i2))); in testDiv()
948 BigInteger k = j.subtract(two); in testDivRanges()
DBigDecimalArithmeticTest.java183 BigDecimal result = aNumber.subtract(bNumber); in testSubtractEqualScalePosPos()
201 BigDecimal result = aNumber.subtract(bNumber, mc); in testSubtractMathContextEqualScalePosPos()
218 BigDecimal result = aNumber.subtract(bNumber); in testSubtractEqualScaleNegNeg()
235 BigDecimal result = aNumber.subtract(bNumber); in testSubtractDiffScalePosNeg()
254 BigDecimal result = aNumber.subtract(bNumber, mc); in testSubtractMathContextDiffScalePosNeg()
271 BigDecimal result = aNumber.subtract(bNumber); in testSubtractDiffScaleNegPos()
290 BigDecimal result = aNumber.subtract(bNumber, mc); in testSubtractMathContextDiffScaleNegPos()
DOldBigIntegerTest.java209 BigInteger wpMinusOne = wp.subtract(BigInteger.ONE); in largePrimesProduct()
/libcore/luni/src/test/java/libcore/java/math/
DBigDecimalTest.java93 assertEquals(0, a.subtract(b).signum()); in testPrecisionFromString()
260 assertEquals("a - (-b)", expectedSumAsString, bigA.subtract(bigMinusB).toString()); in assertSum()
261 assertEquals("b - (-a)", expectedSumAsString, bigB.subtract(bigMinusA).toString()); in assertSum()
336 assertEquals(bigHalfValue, bigValue.subtract(bigHalfValue)); in checkCommonOperations()
DOldBigDecimalArithmeticTest.java61 a.round(mc).subtract(b.round(mc)).toString()); in testSubtractMathContextNonTrivial()
62 res = a.subtract(b, mc); in testSubtractMathContextNonTrivial()
70 res = a.subtract(b, mc); in testSubtractMathContextNonTrivial()
/libcore/luni/src/main/java/java/math/
DBigDecimal.java816 tempBI = larger.getUnscaledValue().subtract( in add()
836 public BigDecimal subtract(BigDecimal subtrahend) { in subtract() method in BigDecimal
857 …return new BigDecimal(this.getUnscaledValue().subtract(subtrahend.getUnscaledValue()), this.scale); in subtract()
864 return new BigDecimal(this.getUnscaledValue().subtract( in subtract()
873 .subtract(subtrahend.getUnscaledValue()), subtrahend.scale); in subtract()
889 public BigDecimal subtract(BigDecimal subtrahend, MathContext mc) { in subtract() method in BigDecimal
897 return subtract(subtrahend).round(mc); in subtract()
908 tempBI = this.getUnscaledValue().subtract(BigInteger.valueOf(thisSignum)); in subtract()
918 return subtract(subtrahend).round(mc); in subtract()
1572 quotAndRem[1] = this.subtract( quotAndRem[0].multiply(divisor) ); in divideAndRemainder()
[all …]
DBigInteger.java433 @NonNull public BigInteger subtract(@NonNull BigInteger value) { in subtract() method in BigInteger
/libcore/luni/src/test/java/libcore/java/lang/
DMathTest.java147 BigInteger expected = BigInteger.valueOf(a).subtract(BigInteger.valueOf(b)); in testSubtractExactL()
180 BigInteger expected = BigInteger.valueOf(a).subtract(BigInteger.ONE); in testDecrementExactL()
DStrictMathTest.java108 BigInteger expected = BigInteger.valueOf(a).subtract(BigInteger.valueOf(b)); in testSubtractExactL()
DLongTest.java186 BigInteger.valueOf(2).shiftLeft(63).subtract(BigInteger.ONE)
/libcore/ojluni/src/main/java/sun/security/util/
DObjectIdentifier.java376 BigInteger second = big.subtract(BigInteger.valueOf(80)); in toIntArray()
443 sb.append(big.subtract(BigInteger.valueOf(80))); in toString()
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java613 public Duration subtract(final Duration rhs) { in subtract() method in Duration
/libcore/jsr166-tests/src/test/java/jsr166/
DCompletableFutureTest.java431 static Integer subtract(Integer x, Integer y) {
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)); in testThenCombine_normalCompletion()
1627 checkCompletedNormally(h3, subtract(w1, w1)); in testThenCombine_normalCompletion()
1628 rs[1].assertValue(subtract(w1, w1)); in testThenCombine_normalCompletion()
1629 rs[3].assertValue(subtract(w1, w1)); in testThenCombine_normalCompletion()
1633 checkCompletedNormally(h0, subtract(v1, v2)); in testThenCombine_normalCompletion()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DNumberFormatTest.java66 … assertEquals("double", nf.format(BigInteger.valueOf(Long.MIN_VALUE).subtract(BigInteger.ONE))); in test_small_BigInteger_gets_longValue()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java779 public void test_minus_TemporalAmount(Period base, Period subtract, Period expected) { in test_minus_TemporalAmount() argument
780 assertEquals(base.minus(subtract), expected); in test_minus_TemporalAmount()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java3032 … BigDecimal rangeBD = BigDecimal.valueOf(range.getMaximum()).subtract(minBD).add(BigDecimal.ONE); in convertToFraction()
3033 BigDecimal valueBD = BigDecimal.valueOf(value).subtract(minBD); in convertToFraction()
3058 … BigDecimal rangeBD = BigDecimal.valueOf(range.getMaximum()).subtract(minBD).add(BigDecimal.ONE); in convertFromFraction()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java639 bigDecimal = new BigDecimal(Float.MIN_VALUE).subtract(new BigDecimal(Float.MIN_VALUE)); in test_formatObject()