Abs(Function)

Get the absolute value of the expression specified.

Abs (<expression>)

Parameters
<Expression>
The expression that calculates the absolute value (integer type or double-precision type real numbers)

Return Value
Returns the value of the double-precision type real number.
The content of the value is the absolute value of the specified expression.

Description
It is possible to specify an integer type or double-precision type as the storage destination for the return value.
When an integet type has been specified, a rounded integer value is stored.

Example
Gets the difference between each coordinate of 2 points (X1,Y1)(X2,Y2).
      X1#=100
        Y1#=200
        X2#=200
        Y2#=100

        DX#=Abs(X1#-X2#)
        DY#=Abs(Y1#-Y2#)

The results are as follows:
DX#=100
DY#=100