trunc#

static vectorious.trunc(x)#

Returns the integer part of each element of x, removing any fractional digits.

Arguments:
Returns:

NDArray

Examples:

import { trunc } from 'vectorious/core/trunc';

trunc([1.2, 2.8, 3.5]); // => array([1, 2, 3])