Find PI to the Nth Digit
+7 · 1 file changed
-
Numbers/pi.py+7 −0
@@ -0,0 +1,7 @@ +# Find PI to the Nth Digit + +import math + +digits = raw_input('Enter number of digits to round PI to: ') + +print round(math.pi, int(digits))
+7 · 1 file changed
Numbers/pi.py
+7 −0
@@ -0,0 +1,7 @@ +# Find PI to the Nth Digit + +import math + +digits = raw_input('Enter number of digits to round PI to: ') + +print round(math.pi, int(digits))