vikky999
asked on
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
http://www.swox.com/gmp/