public native round() as NDArray<T>
Rounds each element to the nearest integer value while preserving the array element type.
a = NDArray<Double>.fromList([1.2, 3.8]) print(a.round())