Advertisement
zeromega64twenty

Pi Solver

Sep 13th, 2023
226
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | Science | 0 0
  1. from mpmath import mp
  2.  
  3. # Set the precision (number of decimal places)
  4. mp.dps = 40000000000000000000000000000000000000000000000000 #40 quattuordecillion 10^45
  5.  
  6. # Calculate pi to the specified precision
  7. pi = mp.pi
  8.  
  9. # Print pi
  10. print(pi)
Advertisement
Comments
  • # text 0.13 KB | 0 0
    1. This will solve to 40 quattuordecillion digits 40^45, you're welcome
    2.  
    3. https://twitter.com/zeromega64/status/1702115562951000402
Add Comment
Please, Sign In to add comment
Advertisement