cupy.around

cupy.around(a, decimals=0, out=None)[source]

Rounds to the given number of decimals.

Parameters:
  • a (cupy.ndarray) – The source array.
  • decimals (int) – umber of decimal places to round to (default: 0). If decimals is negative, it specifies the number of positions to the left of the decimal point.
  • out (cupy.ndarray) – Output array.
Returns:

Rounded array.

Return type:

cupy.ndarray

See also

numpy.around()