The Sign function is a built-in function that returns -1 if n is negative; 1 if n is positive; 0 if n is 0.

Input parameters

n: Decimal Type

Output parameters

Integer Type

Examples

Usage

Result

Sign( -10.89 ) -1

Sign( 2.3 )

1

Sign( 0.0 )

0

See Also

Available Numeric Functions | Available Built-in Functions