numpy.ma.round(a,decimals=0,out=None)[source]¶Return a copy of a, rounded to ‘decimals’ places.
When ‘decimals’ is negative, it specifies the number of positionsto the left of the decimal point. The real and imaginary parts ofcomplex numbers are rounded separately. Nothing is done if thearray is not of float type and ‘decimals’ is greater than or equalto 0.
| Parameters: |
|
|---|
Notes
If out is given and does not have a mask attribute, the mask of ais lost!