Nov-14-2022, 07:08 PM
Thank you, you two!
I just found another way. Apparently, numpy offers a rounding function for their arrays, so one can just call
Then my snippet from above can be used.
I just found another way. Apparently, numpy offers a rounding function for their arrays, so one can just call
ARR.round(decim)where
ARRis a numpy array to be rounded to
decimsignifiant figures.
Then my snippet from above can be used.