Addition of two 100 digit numbers

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

    Addition of two 100 digit numbers

    hi,can any one put light on this question?




    thanks
    puneet vyas
  • Pete Becker

    #2
    Re: Addition of two 100 digit numbers

    On 2008-10-23 04:58:01 -0400, puneet vyas <puneetit4@gmai l.comsaid:
    hi,can any one put light on this question?
    You do it just like you do it on paper: one digit at a time, right to
    left. The details depend on how the numbers are stored, of course.

    --
    Pete
    Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The
    Standard C++ Library Extensions: a Tutorial and Reference
    (www.petebecker.com/tr1book)

    Comment

    • Bernd Strieder

      #3
      Re: Addition of two 100 digit numbers

      Hello,

      puneet vyas wrote:
      hi,can any one put light on this question?
      If you look for solutions ready for use: There are libraries to handle
      this, e.g. gmp, cln and possibly many more.

      If you look for explanations: Handling large numbers should be done in
      most university courses on computer algebra. There are books with just
      that name explaining arithmetics on many different sets, and how it can
      be implemented.

      Bernd Strieder

      Comment

      Working...