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

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:
(Input pi at the start prompt for running

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.