Previous Page | Next Page

Functions and CALL Routines

ABS Function



Returns the absolute value.
Category: Mathematical

Syntax
Arguments
Details
Examples

Syntax

ABS (argument)


Arguments

argument

specifies a numeric constant, variable, or expression.


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

Previous Page | Next Page | Top of Page