Programing with very LARGE Numbers

Posted on 2002-06-30
Last Modified: 2010-04-15
Can I use C to do calculations with very large numbers ( like 2^(10^10) ). If yes what math libraries should I be using? And what is the best software (at a reasonable price, prefferably freeware) that I can use  to write C on Win 98?

If no, what language should I use and what is the best software (at a reasonable price, prefferably freeware) that I can use  to write this language on Win 98?

Question by:ody13
  • 2
  • 2
  • 2
  • +3

Expert Comment

ID: 7120994
Not sure about Windows, but on most UNIX plartforms, you'll find a header mp.h that does multiple precision (ie. big numbers).

However, when doing these things, I prefer to have some sort of straight forward built-in type in the language.  Then, a language like Python (has such a built-in type) is useful.  Also, most math scripting environments have this too (ie. Octave, Mathematica, etc.).

Author Comment

ID: 7121060
Thanks for your answer.

Could you please clarify a little more about what I need to do on a UNIX platform (what is the command and where I add it?)

Also, do you think Maple could also do what I am looking for?

BTW, Are you familiar with Maple?

Thanks again,

Expert Comment

ID: 7121064
As for using the mp library, it's been a while since I've used it.  So I'll have to tell you to check the man page.

As for Maple, I've never used it. If it's as good a math package as people say it is, then there will be no problem handling large numbers with it.

Expert Comment

ID: 7121190
Maple should be able to do it. Its a long time since i used it, but it is a very poerful program.
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

LVL 30

Expert Comment

ID: 7121643
Code Projects has "A class for operations with Large Integer Numbers" article:
LVL 10

Expert Comment

ID: 7121880
I never test this code but it have some time.

search in

for "unsigned integer math"

Author Comment

ID: 7124949
Oleber and SteveGTR,

what program should I use in Win98 to run the codes that the websites that you suggested have?

LVL 10

Accepted Solution

oleber earned 200 total points
ID: 7124990
The code is C standard. Any compiler must work.

Try maybe works and is free


Expert Comment

ID: 7126766
cygwin is a unix shell under win32, has most common functions, includes gcc. Its not the greatest, but its a free compiler and if you are used to unix...
There are many other free ones, other ports of gcc, borland has a free one (no IDE if memory serves). Search on google. There are a lot of free C compilers for windows...


Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode ( They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

911 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