Need help in solving the problem of large numbers in Python, namely the division of large powers and factorials. Those. when trying to share conditional
(4 ** 512) / (5.5 ** 300)
I get
int too large to convert to float
I tried to use decimal, but the problem remained:
decimal.InvalidOperation: [<class 'decimal.DivisionImpossible'>]
Similar problems when trying to divide large factorials:
integer division result too large for a float