Functions and CALL Routines |
Category: | Mathematical |
Syntax | |
Arguments | |
Details | |
Examples |
Syntax |
SIGN(argument) |
Details |
The SIGN function returns the following values:
-1 | |
0 | |
1 |
Examples |
SAS Statements | Results |
---|---|
x=sign(-5); |
-1 |
x=sign(5); |
1 |
x=sign(0); |
0 |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.