abs/2—determine the absolute value of a numeric value
The abs/2
function determines the absolute value of a numeric value.
$ABSVAL=abs($NUMBER)
abs/2 arguments
Argument | Mode | Type | Description |
---|---|---|---|
| Input | INTEGER|REAL | Specifies the numeric (integer or real) value for which the absolute value is to be returned |
| Output | INTEGER|REAL | Returns the absolute value of the number |
The abs/2
function returns the absolute value of the numeric value specified in the $NUMBER
argument as $ABSVAL
.
abs/2 example
$ABS = abs( $AVERAGE_DURATION - real($E.duration) );
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.