Sgn

This function returns the sign of the input value.

Syntax

Parameters

Returns

If the input value if less than 0.0 then -1 is returned, otherwise 1 is returned.