operator % method Null safety
- num other
Euclidean modulo of this number by
Returns the remainder of the Euclidean division.
The Euclidean division of two integers
yields two integers
r such that
a == b * q + r and
0 <= r < b.abs().
The Euclidean division is only defined for integers, but can be easily
extended to work with doubles. In that case
q is stil an integer,
r may have a non-integer value that still satisfies
0 <= r < |b|.
The sign of the returned value
r is always positive.
See remainder for the remainder of the truncating division.
The result is an int, as described by int.%,
if both this number and
other is an integer,
otherwise the result is a double.
num operator %(num other);