Language Reference |
takes the absolute value
where matrix is a numeric matrix or literal.
The ABS function is a scalar function that returns the absolute value of every element of the argument matrix. An example of how to use the ABS function follows:
a = { -1 2 -3, 0 -1 2 }; c=abs(a);
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.