Cicode Programming Reference > Cicode Function Categories > Math and Trigonometry Functions Introduction > Sign

Sign

Gets the sign of a number.

Syntax

Sign(Number)

Number:

Any number.

Return Value

The sign of Number.

Related Functions

Abs

Example

Variable=Sign(100);
! Sets Variable to 1.
Variable=Sign(-300);
! Sets Variable to -1.
Variable=Sign(0);
! Sets Variable to 0.

See Also

Math/Trigonometry Functions