Solved

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

Posted on 2004-10-12
5
675 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…

760 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

21 Experts available now in Live!

Get 1:1 Help Now