Terrorke
09-16-2008, 11:03 AM
Hi,
I have a question about a MOD 97 calculation on a very large number.
The problem is that the number I'm calculating with has 10 digits.
But when executing the code it keeps giving the error 'Overflow'
Here is my code :
Part= 9799591064
result = Part MOD 97
I know the error is within the range of the number variable being to small.
But I even tried putting it into a long or double variable. But no luck.
Does anybody know how to fix this?
I have a question about a MOD 97 calculation on a very large number.
The problem is that the number I'm calculating with has 10 digits.
But when executing the code it keeps giving the error 'Overflow'
Here is my code :
Part= 9799591064
result = Part MOD 97
I know the error is within the range of the number variable being to small.
But I even tried putting it into a long or double variable. But no luck.
Does anybody know how to fix this?