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

Function around

numpy/core/fromnumeric.py:3364–3377  ·  view source on GitHub ↗

Round an array to the given number of decimals. `around` is an alias of `~numpy.round`. See Also -------- ndarray.round : equivalent method round : alias for this function ceil, fix, floor, rint, trunc

(a, decimals=0, out=None)

Source from the content-addressed store, hash-verified

3362
3363@array_function_dispatch(_round_dispatcher)
3364def around(a, decimals=0, out=None):
3365 """
3366 Round an array to the given number of decimals.
3367
3368 `around` is an alias of `~numpy.round`.
3369
3370 See Also
3371 --------
3372 ndarray.round : equivalent method
3373 round : alias for this function
3374 ceil, fix, floor, rint, trunc
3375
3376 """
3377 return _wrapfunc(a, 'round', decimals=decimals, out=out)
3378
3379
3380def _mean_dispatcher(a, axis=None, dtype=None, out=None, keepdims=None, *,

Callers 1

round_Function · 0.85

Calls 1

_wrapfuncFunction · 0.85

Tested by

no test coverage detected