VEX Dictionary / trunc
trunc
Drops everything after the decimal point from a number, or from each component of a vector.
group: mathmath
Available in every context
Usage
float trunc(float x)
vector2 trunc(vector2 x)
vector trunc(vector x)
vector4 trunc(vector4 x)
Examples
No worked examples yet.
Signatures (from vcc -X)
float trunc(float)all contextsvector4 trunc(vector4)all contextsvector2 trunc(vector2)all contextsvector trunc(vector)all contexts