Skip to content

trunc

float  trunc(float x)

If the argument is negative, this returns ceil(x), otherwise it returns floor(x).

vector2  trunc(vector2 x)

vector  trunc(vector x)

vector4  trunc(vector4 x)

Returns a new vector with the trunc() of each component.