Modifying Numeric Values with Functions
SAS provides additional
functions to create or modify numeric values. These include arithmetic,
financial, and probability functions. This book covers the following
selected functions.
CEIL and FLOOR Functions
To return
integers that are greater than or equal to the argument, use these
functions:
-
The CEIL function returns the smallest
integer that is greater than or equal to the argument.
-
The FLOOR function returns the
largest integer that is less than or equal to the argument.
Syntax, CEIL and FLOOR
function:
CEIL(argument)
FLOOR(argument)
argument is
a numeric variable, constant, or expression.
|
If the argument is within 1E-12 of an integer, the function returns that integer. ...