Menu

SIGN

Description

Returns the sign of the argument. Returns 1 if the number is positive, 0 for 0, and -1 if the number is negative.

Examples

SIGN(1) = 1

SIGN(-6) = -1

SIGN(NAN) = 1

SIGN(INF) = 1

SIGN(-INF) = -1

On this page