signNotZero

Returns 1.0 if the given value is positive or zero, and -1.0 if it is negative. This is similar to Math.sign except that returns 1.0 instead of 0.0 when the input value is 0.0.

Return

The sign of value.

Parameters

value

The value to return the sign of.

See also