Remainder(n, d) Better than MOD, same as capping wrapping?
#4
Correct Jack, thanks.

My criteria for the return value is for it to be between 0 and the denominator, as stated right with the code.

This is a common requirement and not some wild idea I just came up with.

-5 into -7 leaves -2 remainder. Mainly the first post Remainder## keeps the numbers returned between 0 and the denominator.
b = b + ...
Reply


Messages In This Thread
RE: Remainder(n, d) Better than MOD, same as capping wrapping? - by bplus - 12-03-2022, 10:18 PM



Users browsing this thread: 4 Guest(s)