Working with HUGE floating point numbers bigger than long double???

Hello Everybody,

I am trying to work with huge numbers ...approximately the largest one being 2^500,000

I need functions that let me work with multiplying numbers this large, converting a decimal number of size 2^500,000 back to binary and vice versa etc.

Is there anyway one can do this using C/C++, is there any api which lets me work with numbers this large ??

Thankyou
Vivek
vikky999Asked:
Who is Participating?
 
ozoConnect With a Mentor Commented:
If you can't simply work with the log of your numbers instead, you might try one of
http://www.csc.fi/math_topics/Mail/FAQ/msg00015.html
0
 
ozoCommented:
specifically, you could get sources from
http://www.swox.com/gmp/
0
 
tim102096Commented:
Its getting into advanced mathematics, which as it looks you are already doing, but you could use an algorithmic function to break the number up and process pieces at a time. In a sense writing your own extended mathematic routines.
0
All Courses

From novice to tech pro — start learning today.