basic calculations with very large numbers

Discussion in 'C++' started by mj, Sep 12, 2003.

  1. mj

    mj Guest

    What is the easiest way to do basic arithmetic operations with numbers
    that exceed the 32bit size. eg.: 200digits_number + 200digits_number

    thanx ,
    martin
     
    mj, Sep 12, 2003
    #1
    1. Advertisements

  2. mj

    Mike Wahler Guest

    mj <> wrote in message
    news:8fp8b.96744$...
    > What is the easiest way to do basic arithmetic operations with numbers
    > that exceed the 32bit size. eg.: 200digits_number + 200digits_number


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

    -Mike
     
    Mike Wahler, Sep 12, 2003
    #2
    1. Advertisements

  3. mj wrote:

    > What is the easiest way to do basic arithmetic operations with numbers
    > that exceed the 32bit size. eg.: 200digits_number + 200digits_number
    >
    > thanx ,
    > martin
    >


    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
     
    Thomas Matthews, Sep 12, 2003
    #3
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex Vinokur

    ilog2() for very large numbers

    Alex Vinokur, Nov 23, 2004, in forum: C++
    Replies:
    3
    Views:
    1,789
    Karl Heinz Buchegger
    Nov 23, 2004
  2. Raymond Arthur St. Marie II of III

    very Very VERY dumb Question About The new Set( ) 's

    Raymond Arthur St. Marie II of III, Jul 23, 2003, in forum: Python
    Replies:
    4
    Views:
    737
    Raymond Hettinger
    Jul 27, 2003
  3. shanx__=|;-

    very very very long integer

    shanx__=|;-, Oct 16, 2004, in forum: C Programming
    Replies:
    19
    Views:
    2,075
    Merrill & Michele
    Oct 19, 2004
  4. Abhishek Jha

    very very very long integer

    Abhishek Jha, Oct 16, 2004, in forum: C Programming
    Replies:
    4
    Views:
    739
    jacob navia
    Oct 17, 2004
  5. Peter

    Very very very basic question

    Peter, Feb 8, 2005, in forum: C Programming
    Replies:
    14
    Views:
    843
    Dave Thompson
    Feb 14, 2005
  6. olivier.melcher

    Help running a very very very simple code

    olivier.melcher, May 12, 2008, in forum: Java
    Replies:
    8
    Views:
    2,813
  7. Frinton

    Calculations on LARGE numbers

    Frinton, Mar 13, 2006, in forum: ASP General
    Replies:
    22
    Views:
    553
    de Graff
    Apr 7, 2006
  8. bmm
    Replies:
    0
    Views:
    245
Loading...