SIGN
math
What changes
- Input
- numeric arguments
- Output or change
- numeric value
- Return type
- Specified expression Return type bigint bigint int/smallint/tinyint int money/smallmoney money numeric/decimal numeric/decimal Other types float
Syntax at a glance
SIGN ( numeric_expression )
Work example
Classify a number as negative, zero, or positive.
Test domain limits and the largest expected input. Keep degree and radian units explicit.
Check your work Test exact zero and null separately because null has no sign result.
Open Microsoft Learn for full syntax, permissions, and details for your version.