Xbasic
ABS Function
Syntax
Value as N = ABS(N number)
Arguments
- number
A number.
Description
Returns the absolute value of a number.
Discussion
ABS() returns the absolute value of a Number or numeric expression. The absolute value of a number is its unsigned value.
Example
abs(-32) -> 32 abs(SCORE1 - SCORE2) -> 25, if SCORE1 is 50 and SCORE2 is 75
See Also