hi guys,
could anyone tell me the algorithm for multiplication and division of big strings?
example:12345678901222222758975987689769(string 1)
646468685567856566575776345567657534(string 2)
There's an ANSI C function strtold() in stdlib.h that converts a string to a long double. Make sure you check the return value and errno after using it to make sure it converted your string successfully. I think this function may be part of the new C99 standard, so if your compiler doesn't provide it, look at strtod().
use linked lists.store the non-zero digits along with their powers in the nodes of a linked list and then perform multiplication and division operations on the lists the same way u do it for polynomials
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.