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)
| 3803 | |
| 3804 | @array_function_dispatch(_round__dispatcher) |
| 3805 | def 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 | |
| 3823 | def _product_dispatcher(a, axis=None, dtype=None, out=None, keepdims=None, |