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

Click to open document
true
Visit the Learning Center

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

Search
Clear search
Close search
Google apps
Main menu
6550153330380743325
true
Search Help Center
false
true
true
true
true
true
35
false
false
false
false
Create a Mobile Website
View Site in Mobile | Classic
Share by: