I've run into this issue with the mod operator throwing an overflow error with larger numbers when using the mod operator.
This code throws the "overflow" error:
? 274313e6 MOD 65536e0 OverflowYet, I can still calculate the modulo using this:
? 274313e6-65536e0*FLOOR(274313e6/65536e0) 13376Internally, why does one work and the other doesn't? The output of the mod operator is inherently smaller than the value after the mod, in this case 65536e0, so the result will be of size x<65536e0 so I don't know why it'd overflow.