AngouriMath
op_Modulus(AngouriMath.Entity.Number.Real,AngouriMath.Entity.Number.Real)
Method (no overloads)
Summary
The floored remainder, which takes the sign of the divisor: -7 % 3 is 2 and
7 % (-3) is -2. See https://github.com/asc-community/AngouriMath/issues/708.
7 % (-3) is -2. See https://github.com/asc-community/AngouriMath/issues/708.
Remarks
This one used to truncate and so took the sign of the dividend, disagreeing
with the same operator on Integer and on
Rational -- which one applied depended on the static type at
the call site rather than on the values.
with the same operator on Integer and on
Rational -- which one applied depended on the static type at
the call site rather than on the values.
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1953 pages online