operator % method

Decimal operator %(
  1. Decimal other
)

Euclidean modulo operator.

See num.operator%.

Implementation

Decimal operator %(Decimal other) {
  var (d1, d2) = _unifyScale(this, other);
  return Decimal._(d1._value % d2._value, d1._scale);
}