VBA seems to handle numbers greater than the maximum value for Long (2,147,483,647) OK, as I understand it by using the Decimal number type, which is a subtype of Variant.
If you go to Immediates and type
you get
But if you type
or try to do the same in a program, you get an overflow error.
Is there any way to get the modulus of such a number?
If you go to Immediates and type
Code:
?3000000000 + 1
Code:
3000000001
Code:
?3000000000 mod 2
Is there any way to get the modulus of such a number?