operator % method
Euclidean modulo operator.
See num.operator%.
Implementation
Rational operator %(Rational other) {
final remainder = this.remainder(other);
if (remainder == _r0) return _r0;
return remainder + (_isNegative ? other.abs() : _r0);
}