Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/math/
DBigDecimal.java836 public BigDecimal subtract(BigDecimal subtrahend) { in subtract() argument
837 int diffScale = this.scale - subtrahend.scale; in subtract()
841 return subtrahend.negate(); in subtract()
843 if (subtrahend.isZero()) { in subtract()
846 } else if (subtrahend.isZero()) { in subtract()
854 if (Math.max(this.bitLength, subtrahend.bitLength) + 1 < 64) { in subtract()
855 return valueOf(this.smallValue - subtrahend.smallValue,this.scale); in subtract()
857 …return new BigDecimal(this.getUnscaledValue().subtract(subtrahend.getUnscaledValue()), this.scale); in subtract()
861 … Math.max(this.bitLength,subtrahend.bitLength+LONG_POWERS_OF_TEN_BIT_LENGTH[diffScale])+1<64) { in subtract()
862 …return valueOf(this.smallValue-subtrahend.smallValue*MathUtils.LONG_POWERS_OF_TEN[diffScale],this.… in subtract()
[all …]