operator * method

BigDecimal operator *(
  1. BigDecimal other
)

Multiplies this BigDecimal by another.

Implementation

BigDecimal operator *(BigDecimal other) {
  BigInt result = _unscaledValue * other._unscaledValue;
  int newScale = _scale + other._scale;
  return BigDecimal._(result, newScale);
}