NO

Author Topic: Multiplication of large numbers  (Read 2348 times)

CLR

  • Guest
Multiplication of large numbers
« on: December 29, 2016, 06:32:29 PM »
The example computes the multiplication of two numbers, like humans would.

It can be used to compute the factorial of large numbers (left as exercise  ;) )

Grincheux

  • Guest
Re: Multiplication of large numbers
« Reply #1 on: January 01, 2017, 02:41:40 PM »
Windows calc : 6,895318128324617e+31 ???
Your program : 689531812832461781857990094380506007705131882510476340372493704252300  ;D ;D ;D

No comment!

68 numbers, very impressive

I tried with this :

Code: [Select]
char *m = multiply("31415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679", "8218287400912384756381817236351009293");
Result : 25818511323795903788159167740198786478181582731855951968098822963472561332509573
4614423527487523584972455915829019112996767173195268119947
Press any key to continue...

Very good