I am trying to find out the square root of a number. But the numbers are large. Python gives the error
OverflowError: int too large to convert to float
My code is here:
number=pow(255,200)-10000000 sqrt=math.sqrt(number) i tried it with the decimal class but it doesn't work. How to handle these large numbers in python?
.sqrtmethod:(pow(Decimal(255),200)-10000000).sqrt()=Decimal('4.508354347658170012443202806E+240')