public native trunc() as NDArray<T>
Applies trunc element-wise while preserving the array element type.
trunc
a = NDArray<Double>.fromList([-1.2, 3.8]) print(a.trunc())