abs_return_absolute_value_.htm
Navigation: Language Reference > 13 - Built-in Functions >====== ABS (return absolute value) ====== | |
ABS(expression)
ABS | Returns absolute value. |
expression | A constant, variable, or expression. |
The ABS procedure returns the absolute value of an expression. The absolute value of a number is always positive (or zero).
Return Data Type: | REAL or DECIMAL |
Example:
C = ABS(A - B) !C is absolute value of the difference
IF B <; 0
B = ABS(B) !If b is negative make it positive
END
See Also:
abs_return_absolute_value_.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1