The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

# Thread: Class for HUGE numbers?

1. 2
posts
Registered User

## Class for HUGE numbers?

I'm making a game at the moment that uses big numbers. The Number class works perfectly up to somewhere around 1.00x10^300. I would like to use much higher numbers though if possible.

I figure the way would be to create a new class that uses 2 numbers. One for the decimal part and another for the exponential part. Then presumably the numbers could go up to 1.00x10^(1x10^300).

Anybody know a practical way to do this? Or of another solution?

Thanks!

2. 2
posts
Registered User
Just wanted to add I obviously don't mind if the decimal part is rounded after 10 digits or so (just like it is with the current number class).

3. If you're looking for an implementation:

If you're looking for ideas / theory / etc.:

http://en.wikipedia.org/wiki/Arbitra...ion_arithmetic