Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.ma.round

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:
decimals:int

Number of decimals to round to. May be negative.

out:array_like

Existing array to use for output.If not given, returns a default copy of a.

Notes

If out is given and does not have a mask attribute, the mask of ais lost!

Previous topic

numpy.ma.clip

Next topic

numpy.ma.allequal

Quick search

  • © Copyright 2008-2018, The SciPy community.
  • Last updated on Jul 24, 2018.
  • Created usingSphinx 1.6.6.

[8]ページ先頭

©2009-2025 Movatter.jp