Precision isn’t the same under the same code right next to each other

Question:
I have a code that saves the calculation done into a file, and then print it out
The printed one is very precise, the saved one isn’t
They uses the same code

Repl link:
https://replit.com/@s3D27ZHOU/Const-Calculator
(Pi.py)
(Input pi at the start prompt for running pi.py)

It seemed that subprocess is similar to running a new python bruh
Fixed by running every single setting inside subprocess function

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.