numpy.ndarray.round#

方法

ndarray.round(decimals=0, out=None)#

返回将 a 的每个元素四舍五入到指定小数位数后的结果。

参考 numpy.around 获取完整文档。

另请参阅

numpy.around

等效函数