klyn.math.Math.round
method
public static round<NUMBER_TYPE extends AbstractNumber>(values as NDArray<NUMBER_TYPE>) as NDArray<NUMBER_TYPE>:
Description
Rounds each element of an array while preserving the array element type. This overload delegates to the native vectorized NDArray kernel.
import klyn.math

values = NDArray<Double>.fromList([1.2, 3.8])
print(Math.round(values))