Click to See Complete Forum and Search --> : MOD 97 calculation


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?

Terrorke
09-19-2008, 02:17 AM
anyone??