bundles / numpy 2.4.4 / numpy / lib / _arraypad_impl / _round_if_needed
function
numpy.lib._arraypad_impl:_round_if_needed
source: /numpy/lib/_arraypad_impl.py:19
Signature
def _round_if_needed(arr, dtype)Summary
Rounds arr inplace if destination dtype is integer.
Parameters
arr: ndarrayInput array.
dtype: dtypeThe dtype of the destination array.
Aliases
numpy.lib._arraypad_impl._round_if_needed