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)
|
If the argument is within 1E-12 of an integer, the function returns that integer. ...
Get SAS Certified Specialist Prep Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.