FANDOM


Trunc

Name Edit

Trunc - returns largest integer not greater than a scalar or each vector component.

Synopsis Edit

vector1 trunc(vector1 v);
vector2 trunc(vector2 v);
vector3 trunc(vector3 v);
vector4 trunc(vector4 v);

Parameters Edit

v
Vector or scalar which to truncate.

Description Edit

Returns the integral value nearest to but no larger in magnitude than v.