Searched refs:subtract (Results 1 – 13 of 13) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerSubtractTest.java | 43 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 …]
|
D | BigIntegerHashCodeTest.java | 42 aNumber1.subtract(aNumber2).shiftRight(125); in testSameObject()
|
D | BigDecimalTest.java | 745 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()
|
D | BigIntegerTest.java | 111 .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()
|
D | BigDecimalArithmeticTest.java | 183 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()
|
D | OldBigIntegerTest.java | 209 BigInteger wpMinusOne = wp.subtract(BigInteger.ONE); in largePrimesProduct()
|
/libcore/luni/src/main/java/java/math/ |
D | BigDecimal.java | 816 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 …]
|
D | BigInteger.java | 431 public BigInteger subtract(BigInteger value) { in subtract() method in BigInteger
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigDecimalTest.java | 88 assertEquals(0, a.subtract(b).signum()); in testPrecisionFromString()
|
D | OldBigDecimalArithmeticTest.java | 61 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/ |
D | NumberFormatTest.java | 65 … 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/ |
D | Duration.java | 613 public Duration subtract(final Duration rhs) { in subtract() method in Duration
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DecimalFormatTest.java | 639 bigDecimal = new BigDecimal(Float.MIN_VALUE).subtract(new BigDecimal(Float.MIN_VALUE)); in test_formatObject()
|