SUMMARY
The integer division operator (\) and the modulo arithmetic operator
(MOD) correctly produce an "Overflow" error if an operand is a
negative number less than -2,147,483,648 or a positive number greater
than +2,147,483,647 (outside the limits for long integers).
The following program shows how to do integer division and modulo
arithmetic when the size of an operand causes overflow:
x# = 2147483648 ' numerator
y# = 123 ' denominator
x# = INT(x# + .5) ' round off the numerator
y# = INT(y# + .5) ' round off the denominator
PRINT FIX(x# / y#) ' Emulate integer division
PRINT x# - ( y# * FIX(x# / y#) ) ' Emulate modulo arithmetic