Solved

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

Posted on 2004-10-12
675 Views
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
Question by:vikky999
• 2

LVL 84

Accepted Solution

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

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

Expert Comment

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

### Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
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.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…