operator % method
Euclidean modulo operator.
Returns the remainder of the euclidean division. The euclidean division
of two integers a
and b
yields two integers q
and r
such that
a == b * q + r
and 0 <= r < a.abs()
.
Implementation
@override
Int32 operator %(Object other) {
if (other is Int64) {
// Result will be Int32
return (toInt64() % other).toInt32();
}
return Int32(_i % _toInt(other));
}