I am trying to find the square root of 2 to 100 decimal places, but it only shows to like 10 by default, how can I change this?
You can use gmpy2.
import gmpy2 ctx = gmpy2.get_context() ctx.precision = 300 print(gmpy2.sqrt(2))