0

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.?

Tom
  • 85
  • 1
  • 2
  • 6
  • 1
    Does this answer your question? https://stackoverflow.com/questions/538551/handling-very-large-numbers-in-python – j1-lee Jun 14 '21 at 03:01
  • 2
    You 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
  • 1
    If 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

0 Answers0