SIGN

SIGN(arg1) → { number | string | boolean }

Returns the sign of a number: 1 if the number is positive, zero if the number is zero, or -1 if the number is negative.

Parameters:

Name Type Description
arg1 number

Is any real number.

Returns:

Type
number | string | boolean