MCPcopy Create free account
hub / github.com/numpy/numpy / round_

Function round_

numpy/core/fromnumeric.py:3805–3820  ·  view source on GitHub ↗

Round an array to the given number of decimals. `~numpy.round_` is a disrecommended backwards-compatibility alias of `~numpy.around` and `~numpy.round`. .. deprecated:: 1.25.0 ``round_`` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use

(a, decimals=0, out=None)

Source from the content-addressed store, hash-verified

3803
3804@array_function_dispatch(_round__dispatcher)
3805def round_(a, decimals=0, out=None):
3806 """
3807 Round an array to the given number of decimals.
3808
3809 `~numpy.round_` is a disrecommended backwards-compatibility
3810 alias of `~numpy.around` and `~numpy.round`.
3811
3812 .. deprecated:: 1.25.0
3813 ``round_`` is deprecated as of NumPy 1.25.0, and will be
3814 removed in NumPy 2.0. Please use `round` instead.
3815
3816 See Also
3817 --------
3818 around : equivalent function; see for details.
3819 """
3820 return around(a, decimals=decimals, out=out)
3821
3822
3823def _product_dispatcher(a, axis=None, dtype=None, out=None, keepdims=None,

Callers

nothing calls this directly

Calls 1

aroundFunction · 0.85

Tested by

no test coverage detected