Simstim

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)

Related

Full SideFX documentation ↗