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.

30th Aug 2018, 11:38 PM
Emlin The Coder
Emlin The Coder - avatar
2 ответов
+ 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/
31st Aug 2018, 12:32 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 1
thank you Kinshuk Vasisht
1st Sep 2018, 5:54 AM
Emlin The Coder
Emlin The Coder - avatar