In [86]: array.std()
Out[86]: 100.70953143681199
In [87]: array.std().round()
Out[87]: 101.0
In [88]: array.std().round(2)
Out[88]: 100.70999999999999
In [89]: array.std().round(decimals=2)
Out[89]: 100.70999999999999
In [90]: np.round(array.std(), decimals=2)
Out[90]: 100.70999999999999
I would like to standard deviation to be round at 2 decimals, but it didn't work so far. How could I fix it? How to make that works with numpy
?