public BigDecimal setScale(int newScale) {
return setScale(newScale, ROUND_UNNECESSARY);
}
/**
* Rounding mode to assert that the requested operation has an exact
* result, hence no rounding is necessary. If this rounding mode is
* specified on an operation that yields an inexact result, an
* {@code ArithmeticException} is thrown.
*/
public final static int ROUND_UNNECESSARY = 7;
boolean equals(Object x) public int compareTo(BigDecimal val)
@return -1, 0, or 1 as this {@code BigDecimal} is numerically less than, equal to, or greater than {@code val}.