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

Abs

Calculates the absolute (positive) value of a number. The absolute value of a number is the number without its sign.

Syntax

Abs(Number)

Number:

Any number.

Return Value

The absolute (positive) value of Number.

Related Functions

Sign

Example

Variable=Abs(-67);
! Sets Variable to 67.
Variable=Abs(67);
! Sets Variable to 67.

See Also

Math/Trigonometry Functions