Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from mpmath import mp
- # Set the precision (number of decimal places)
- mp.dps = 40000000000000000000000000000000000000000000000000 #40 quattuordecillion 10^45
- # Calculate pi to the specified precision
- pi = mp.pi
- # Print pi
- print(pi)
Advertisement
Comments
-
- This will solve to 40 quattuordecillion digits 40^45, you're welcome
- https://twitter.com/zeromega64/status/1702115562951000402
Add Comment
Please, Sign In to add comment
Advertisement