0
How can you convert large numbers into smaller ones while being to operate on the small numbers and get the same result?
i m working with large numbers but the problem is that my laptop has exhausted its limits and cant use larger numbers. i want to know how i can derived smaller numbers and still receive the same answer when operating them.
2 odpowiedzi
+ 4
You can represent the numbers as strings, and perform arithmetic on these strings. That way, you can ensure that you don't exceed the limit.
Here is a way to perform multiplication on two strings:
https://www.google.com/amp/s/www.geeksforgeeks.org/multiply-large-numbers-represented-as-strings/amp/
+ 1
thank you Kinshuk Vasisht