Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Language Reference

ABS Function

takes the absolute value

ABS( matrix)

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 is shown below.

   c=abs(a);

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.