basic calculations with very large numbers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mj

    basic calculations with very large numbers

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

    thanx ,
    martin

  • Mike Wahler

    #2
    Re: basic calculations with very large numbers


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

    Get a library that does it.


    -Mike



    Comment

    • Thomas Matthews

      #3
      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_numbe r + 200digits_numbe r
      >
      > 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:

      C++ Faq: http://www.parashift.com/c++-faq-lite
      C Faq: http://www.eskimo.com/~scs/c-faq/top.html
      alt.comp.lang.l earn.c-c++ faq:

      Other sites:
      http://www.josuttis.com -- C++ STL Library book

      Comment

      Working...