Skip to main content

NDArray::rint

public static function rint(NDArray|array|float|int $array): NDArray|float|int;

Rounds the elements of an array to the nearest integer, returning a new array with the elements rounded to the nearest integer.


Notes​

tip

GPU SUPPORTED​

This operation is supported by GPU (VRAM) and contains a custom CUDA kernel.