September 2019
Beginner to intermediate
346 pages
7h 35m
English
While we have focused a lot on string-based functions in this chapter, there are also multiple instances when some form of treatment needs to be applied to numeric variables. The troika of ceiling, flooring, and rounding functions are the basic functions that come in handy. While some experienced SAS users may find these functions to be too basic to justify spending time practicing them, by the end of this section, you will have discovered some common mistakes that can only be avoided by the proper use of these functions.
We will use all four functions in the following code:
Data Decimal;Input Score;Ceil = Ceil (Score);Floor = Floor (Score);Int = Int (Score);Round = Round (Score);Datalines67.45453.3445.2360.80 ...
Read now
Unlock full access