parameters: (arr, dtype)
docstring: Rounds arr inplace if destination dtype is integer.
  
      Parameters
      ----------
      arr : ndarray
          Input array.
      dtype : dtype
          The dtype of the destination array.
docstring_summary: Rounds arr inplace if destination dtype is integer.
docstring_tokens: Rounds arr inplace if destination dtype is integer .
function: def _round_ifneeded(arr, dtype):
      """
      Rounds arr inplace if destination dtype is integer.
  
      Parameters
      ----------
      arr : ndarray
          Input array.
      dtype : dtype
          The dtype of the destination array.
  
      """
      if np.issubdtype(dtype, np.integer):
          arr.round(out=arr)
function_tokens: def _round_ifneeded ( arr , dtype ) : if np . issubdtype ( dtype , np . integer ) : arr . round ( out = arr )