Connecting Tech Pros Worldwide Help | Site Map

basic calculations with very large numbers

  #1  
Old July 19th, 2005, 06:26 PM
mj
Guest
 
Posts: n/a
What is the easiest way to do basic arithmetic operations with numbers
that exceed the 32bit size. eg.: 200digits_number + 200digits_number

thanx ,
martin

  #2  
Old July 19th, 2005, 06:26 PM
Mike Wahler
Guest
 
Posts: n/a

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



  #3  
Old July 19th, 2005, 06:27 PM
Thomas Matthews
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 14th, 2005 04:15 AM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 11:37 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 09:56 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 03:15 AM