Truncate the decimal part of each element in an array.
> trunc([1.2, 2.5, 3.7])[1, 2, 3] Copy
> trunc([1.2, 2.5, 3.7])[1, 2, 3]
The array of numbers.
An array with the integer part of each input element.
Truncate the decimal part of each element in an array.
Example