int sign(int n)
float sign(float n)
For a scalar value, returns 1
for a negative number, 0
for the number zero,
and +1
for a positive number.
vector2 sign(vector2 v)
vector sign(vector v)
vector4 sign(vector4 v)
For vector values the sign of the individual components is returned as a vector.
See also  
math 
