This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / lib / _arraypad_impl / _round_if_needed

function

numpy.lib._arraypad_impl:_round_if_needed

source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_arraypad_impl.py :19

Signature

def   _round_if_needed ( arr dtype )

Summary

Rounds arr inplace if destination dtype is integer.

Parameters

arr : ndarray

Input array.

dtype : dtype

The dtype of the destination array.

Aliases

  • numpy.lib._arraypad_impl._round_if_needed