| Functions and CALL Routines |
| Category: | Mathematical |
| Syntax | |
| Arguments | |
| Details | |
| Examples |
Syntax |
| ABS (argument) |
| Details |
The ABS function returns a nonnegative number that is equal in magnitude to the magnitude of the argument.
| Examples |
| SAS Statements | Results |
|---|---|
x=abs(2.4); |
2.4 |
x=abs(-3); |
3 |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.