VEX Dictionary / abs
abs
Computes the absolute value of an int, float, or vector, per component.
group: mathmathnumber
Available in every context
Usage
int abs(int n)
float abs(float n)
<vector> abs(<vector> v)
Examples
No worked examples yet.
Signatures (from vcc -X)
float abs(float)all contextsint abs(int)all contextsvector4 abs(vector4)all contextsvector2 abs(vector2)all contextsvector abs(vector)all contexts