Solved

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

Posted on 2004-10-12
5
676 Views
Last Modified: 2013-11-13
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
0
Comment
Question by:vikky999
  • 2
5 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 250 total points
ID: 12293796
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
 
LVL 84

Expert Comment

by:ozo
ID: 12293845
specifically, you could get sources from
http://www.swox.com/gmp/
0
 

Expert Comment

by:tim102096
ID: 12309695
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now