SIGN

SIGN determines if a number is positive, negative, or zero. The function returns 1 if the number is positive, -1 if the number is negative, and 0 if the number is zero.

This function is valid in both rules and TurboIntegrator processes.

Syntax

SIGN(number)

Argument

Description

number

A number.

Example

SIGN(-2.5) returns -1.