[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.c++

Addition of two 100 digit numbers

puneet vyas

10/23/2008 8:58:00 AM

hi,can any one put light on this question?




thanks
puneet vyas
2 Answers

Pete Becker

10/23/2008 10:20:00 AM

0

On 2008-10-23 04:58:01 -0400, puneet vyas <puneetit4@gmail.com> said:

> 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)

Bernd Strieder

10/23/2008 10:55:00 AM

0

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