Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/math/
DBigDecimal.java732 public BigDecimal add(BigDecimal augend) { in add() argument
733 int diffScale = this.scale - augend.scale; in add()
737 return augend; in add()
739 if (augend.isZero()) { in add()
742 } else if (augend.isZero()) { in add()
750 if (Math.max(this.bitLength, augend.bitLength) + 1 < 64) { in add()
751 return valueOf(this.smallValue + augend.smallValue, this.scale); in add()
753 … return new BigDecimal(this.getUnscaledValue().add(augend.getUnscaledValue()), this.scale); in add()
756 return addAndMult10(this, augend, diffScale); in add()
758 return addAndMult10(augend, this, -diffScale); in add()
[all …]