Problem # 29 : Big-Mult

If you attempt to multiply two large numbers with any calculator etc., you won't get an answer accurate upto the last digit. Your objective is to overcome this problem in calculators.

Write a function BIGMULT$(A$,B$), which is passed two numbers in the form of the strings A$ and B$ and returns their product in the form of a string.

Sample Output
BIGMULT(19 ,3)
  returns  
57
BIGMULT(89999123823471,0)
returns
0
BIGMULT(1111111111,1111111111)
returns
1234567900987654321
BIGMULT(12344321,43211234)
returns
533413343302114
BIGMULT(78987234987,238479887423)
returns
18836866907553806868501
BIGMULT(965626593646731456,376822969677254657)
returns
363870280617292991865908355404390592
BIGMULT(10901,90109)
returns
982278209
BIGMULT(99899899899899,10000000000000)
returns
998998998998990000000000000


Previous Problem
Return to problems at The Vault
(Back to problems at The Vault )
Next Problem

LinkExchange
LinkExchange Member
1