sign

Returns 1, 0 or -1 for positive, zero and negative respectively.

Function

result = sign(input)

Arguments

ArgumentData Type
inputnumeric
resultdecimal

Examples

result = sign(-16) /* result = -1 */
result = sign(5) /* result = 1 */