Sign

 

Purpose:

Returns the sign of the value (+1 for a positive value, -1 for a negative value or 0 if the value is 0).

Parameter:

Number       Value

Return value:

Number

Example:

Sign (-3)         Result: -1