ankur_sh2001 wrote: > how to add 4 long integers > like > 562715478678943549...........100 times > 562715478678943549...........100 times > 562715478678943549...........100 times > 562715478678943549...........100 times
That will exceed the size of an unsigned 64-bit integer. For working with really large numbers, you will need an arbitrary precision math library. BTW, 562715478678943549 * 100 = 56271547867894354900...multiplying by 10^n is easy - tack the number of zeros corresponding to 'n' onto the end of the other number. In this case, two zeros. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
