Chapter 4: Functions and CALL Routines-Dictionary


ABS Function

Returns the absolute value

Category: Mathematical

Syntax

ABS ( argument )

Arguments

argument

  • is numeric.

Details

The ABS function returns a nonnegative number that is equal in magnitude to that of the argument.

Examples

SAS Statements

Results

x=abs(2.4);

2.4

x=abs(-3);

3




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net