Home
last modified time | relevance | path

Searched refs:subtract (Results 1 – 13 of 13) 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()
461 assertTrue(">>1 == /2", f.subtract(one).divide(two).equals(e)); in test_shiftRightI()
936 || r.equals(mod.subtract(i2))); in testDiv()
947 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/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()
1564 quotAndRem[1] = this.subtract( quotAndRem[0].multiply(divisor) ); in divideAndRemainder()
[all …]
DBigInteger.java431 public BigInteger subtract(BigInteger value) { in subtract() method in BigInteger
/libcore/luni/src/test/java/libcore/java/math/
DBigDecimalTest.java88 assertEquals(0, a.subtract(b).signum()); in testPrecisionFromString()
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/test/java/libcore/java/text/
DNumberFormatTest.java65 … assertEquals("double", nf.format(BigInteger.valueOf(Long.MIN_VALUE).subtract(BigInteger.ONE))); in test_small_BigInteger_gets_longValue()
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java613 public Duration subtract(final Duration rhs) { in subtract() method in Duration
/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()