Connecting Tech Pros Worldwide Forums | Help | Site Map

basic calculations with very large numbers

mj
Guest
 
Posts: n/a
#1: Jul 19 '05
What is the easiest way to do basic arithmetic operations with numbers
that exceed the 32bit size. eg.: 200digits_number + 200digits_number

thanx ,
martin


Mike Wahler
Guest
 
Posts: n/a
#2: Jul 19 '05

re: basic calculations with very large numbers



mj <e9625481@stud3.tuwien.ac.at> wrote in message
news:8fp8b.96744$ef4.862167@news.chello.at...[color=blue]
> What is the easiest way to do basic arithmetic operations with numbers
> that exceed the 32bit size. eg.: 200digits_number + 200digits_number[/color]

Get a library that does it.
www.google.com

-Mike



Thomas Matthews
Guest
 
Posts: n/a
#3: Jul 19 '05

re: basic calculations with very large numbers


mj wrote:
[color=blue]
> What is the easiest way to do basic arithmetic operations with numbers
> that exceed the 32bit size. eg.: 200digits_number + 200digits_number
>
> thanx ,
> martin
>[/color]

I've used the GMP and Openssl/Crypto/Big Number library.
I recommend the Big Number library.


--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Closed Thread