abs VEX function

Returns the absolute value of the argument.

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

  1. int abs(int )

  2. float abs(float )

  3. vector abs(vector )

  4. vector4 abs(vector4 )

Returns the absolute value of the argument.