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 ??

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
specifically, you could get sources from
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.
All Courses

From novice to tech pro — start learning today.