Returns the absolute value
Category: Mathematical
ABS ( argument )
argument
is numeric.
The ABS function returns a nonnegative number that is equal in magnitude to that of the argument.
SAS Statements | Results |
---|---|
x=abs(2.4); | 2.4 |
x=abs(-3); | 3 |