How did you use the round function?give an example(don't
say it will round to the nearest intger) eg1:round(84.55,.1)
=84.6 eg2:round(92.64,.1)=92.6,How it is happening like
this tell me the logic,that is how the round function works
when we have deimal values?
Answer Posted / learner
Round function rounds to nearest point according to given
significant limit.
EX1 round(84.55 , .1) in this case the significant limit
given by you is .1. so it will round upto one decimal value
(aa.a). Since the value is .55 it returns .6 . then the
output is 84.6(84+.5+.1)
Ex2 round(92.64, .1) the value that is need to be rounded
is .04 and less than half of significant value it returns
0. so total valu is 92+.6+.0=92.6
I hope it will help you
Is This Answer Correct ? | 14 Yes | 6 No |
Post New Answer View All Answers
How are numeric and character missing values represented internally?
Give e an example of..
Explain proc univariate?
what are the best practices to process the large data sets in sas programming? : Sas-administrator
how to debug and test the sas program? : Sas-administrator
Mention the difference between ceil and floor functions in sas?
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
How necessary is it to be creative in your work?
Give e an example of..
What are the statements that are executed only?
What can be the size of largest dataset in SAS?
What is the differnce between SDTM 3.1.2 to 3.1.1 version
why is sas considered self-documenting? : Sas programming
What are the difference between sas functions and procedures?