如果我有一个numpy的数组是这样的:格式化漂浮在numpy的阵列
[2.15295647e+01, 8.12531501e+00, 3.97113829e+00, 1.00777250e+01]
我怎样才能让我结束了一个numpy的阵列这样的移动小数点和数字的格式:
[21.53, 8.13, 3.97, 10.08]
np.around(a, decimals=2)
只给我[2.15300000e+01, 8.13000000e+00, 3.97000000e+00, 1.00800000e+01]
我不想要的,我还没有找到另一种方式来做到这一点。
可能的重复[如何漂亮打印numpy.array没有科学记数法和给定的精度?](http://stackoverflow.com/questions/2891790/how-to-pretty-printing-a-numpy- array-without-scientific-notation-and-with-given) –