Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-10-12
5
Medium Priority
?
685 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 1000 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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

This is about my first experience with programming Arduino.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Introduction to Processes

688 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