I want to do arithmetic operations like adding two 100 digit long number then how can I perform using the programming language like python or any other as long long int can support till 20 digits max.?
Asked
Active
Viewed 56 times
0
-
1Does this answer your question? https://stackoverflow.com/questions/538551/handling-very-large-numbers-in-python – j1-lee Jun 14 '21 at 03:01
-
2You use the `+`, `-`, `/`, `*`, `**`, etc. symbols. Python supports an arbitrarily long number out of the box as part of [PEP237](https://www.python.org/dev/peps/pep-0237/)- just plug and play. – felipe Jun 14 '21 at 03:02
-
1If you need more performance on truly huge integers, consider using gmpy, which does things like FFT for multiplication whereas the stdlib uses Karatsuba. – Dennis Jun 14 '21 at 03:06