Page 1 of 1

the operators rem and mod don't function correctly after 238 operand

Posted: 3 Mar 2018 12:37
by mdosnov2016
I am having trouble with mod/rem don't work correctly for numbers higher than 238.
e.g. Modulo5 = 239 mod 5
fails.
Shall I use functions from different class?

Re: the operators rem and mod don't function correctly after 238 operand

Posted: 3 Mar 2018 13:22
by Harrison Pratt
If Modulo5 = 239 mod 5 fails it is because Modulo5 is already bound to a different value and you are asking if the mathematical expression gives the same result as is already bound to Modulo5.

Mod and rem are built-in functions.