sign

Returns the sign (1 for positive, 0, or -1 for negative) of the specified value.

Syntax

sign(numeric)

Parameters

Examples

Usage

Results are of the same type, and have the same precision and scale, as the numeric expression.

See also Transact-SQL Users Guide.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute sign.

Related reference
abs
ceiling
floor
round