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