How to manage a very big number?

I am running a code that computes a very big numbers. The program works untill it reachs its limit then all the rest turns out to be infinity. The number grows exponentially. Could u please let me know how to handle this problem?

Thanks in advance,
Last edited on
Try using a "long double" or "long int" for your variable declarations instead of just "double" or "int".
I believe on most systems, even long long int or unsigned long long int are supported types. They're very big.

Very.
128 bits is not that big. Have you seen the 46th Mersenne Prime? 12.8 million decimal digits.

Besides, long long is not standard.
Topic archived. No new replies allowed.