numpy.matrix.round

matrix.round(decimals=0, out=None)

返回a,每个元素四舍五入为给定的小数位数。

有关完整文档,请参阅numpy.around

也可以看看

numpy.around
等效函数