Sign Function

Sign detect the sign of a number


Function

The function Sign returns a value that represents the sign of a number.

Result is 1 if the number is positive

Result is 0 if the number is zero

Result is -1 if the number is negative

The argument can be a single number or a data field. In the case of data fields, the sign is determined for each individual element and the results are returned in a data field of the same size.

Syntax

Sign (Wert)

Sign (Liste)

Sign (Tabelle)

Example

Sign (6.6) = 1

Sign (0) = 0

Sign (-3.5) = -1