SQL Server SIGN() Function
Definition and Usage
The SIGN() function returns the sign of a number.
This function will return one of the following:
- If number > 0, it returns 1
 - If number = 0, it returns 0
 - If number < 0, it returns -1
 
Syntax
  SIGN(number)
Parameter Values
| Parameter | Description | 
|---|---|
| number | Required. The number to return the sign for | 
Technical Details
| Works in: | SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse | 
|---|
More Examples
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.