big numbers in C++

E

Elliot Chance

Hi,

I want to store very big numbers (eg. 2^1024)

Does any know how to store numbers like this, so they can then be
manipulated, (+-*/)

Thanks, Elliot
 
J

John Harrison

Elliot Chance said:
Hi,

I want to store very big numbers (eg. 2^1024)

Does any know how to store numbers like this, so they can then be
manipulated, (+-*/)

Thanks, Elliot

By far the simplest way is to use the work that someone else has already
done. There are several free libraries that handle this sort of thing, for
instance

http://www.shoup.net/ntl/index.html

john
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
Martindap

Latest Threads

Top