Functions and CALL Routines

ABS Function



Returns the absolute value
Category: Mathematical

Syntax
Arguments
Details
Examples

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

space
Previous Page | Next Page | Top of Page