![]() Chapter Contents |
![]() Previous |
![]() Next |
| FLOOR |
| Category: | Truncation |
| Syntax | |
| Arguments | |
| Details | |
| Examples |
Syntax |
| FLOOR(argument) |
| Details |
If the argument is within 10**(-12) of an integer, the function returns that integer.
| Examples |
| SAS Statements | Results |
|---|---|
var1=2.1; a=floor(var1); put a; |
2 |
var2=-2.4; b=floor(var2); put b; |
-3 |
c=floor(3); put c; |
3 |
d=floor(-1.6); put d; |
-2 |
e=floor(1.-1.e-13); put e; |
1 |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.