Home Reference VEX VEX functions 

abs vex function

Contexts: chop , cop , displace , fog , image3d , light , photon , pop , shadow , sop , surface

Tags: math

Returns the absolute value of the argument.

  1. int abs(int )

  2. float abs(float )

  3. vector abs(vector )

  4. vector4 abs(vector4 )

Returns the absolute value of the argument.