public static trunc<NUMBER_TYPE extends AbstractNumber>(values as NDArray<NUMBER_TYPE>) as NDArray<NUMBER_TYPE>:
Applies trunc element-wise on 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.trunc(values))