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:
argument is a numeric variable, constant, or expression.
If the argument is within 1E-12 of an integer, the function returns that integer. ...

Get SAS Certified Specialist Prep Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.