Intrinsic-0 Abs

Intrinsic-0 Abs

Top  Previous  Next

0: variable:= Abs(value);

 

This intrinsic returns the absolute value of the integer argument. If the value is negative, the sign is removed. For example:

 

       X:= Abs(X);

 

A faster way to get the absolute value is to use the "abs" command word. This lowercase "abs" also works for both integers and reals.