SIGN

Given an input number, returns `-1` if it is negative, `1` if positive, and `0` if it is zero.

Sample Usage

SIGN(-42)

SIGN(A2)

Syntax

SIGN(value)

  • value - The value whose sign will be evaluated.

Examples

Was this helpful?
How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
Search Help Center
false
false
true
true
35
false
false