data work.titaniccsv; length pclass $1 survived $1 name $82 sex $8 age $2 sibsp $1 parch $1 ticket $20 fare $10 cabin $10 embarked $1 boat $5 body $4 home_dest $70; infile '/home/ywliang960/Titanic/titanic3.csv' firstobs=2 dsd; input pclass survived name $ sex $ age sibsp parch ticket $ fare cabin $ embarked $ boat $ body home_dest $; Age= round(age); run; I'm able to round off every decimals EXCEPT for numbers like 0.92, 0.72. Those numbers rounded off to 0 instead of 1. Any ideas to solve it?
... View more