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


Please Help Members By Posting Answers For Below Questions

How are numeric and character missing values represented internally?

1132


Give e an example of..

1834


Explain proc univariate?

600


what are the best practices to process the large data sets in sas programming? : Sas-administrator

529


how to debug and test the sas program? : Sas-administrator

567






Mention the difference between ceil and floor functions in sas?

636


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

1837


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?

2374


How necessary is it to be creative in your work?

2014


Give e an example of..

1642


What are the statements that are executed only?

666


What can be the size of largest dataset in SAS?

705


What is the differnce between SDTM 3.1.2 to 3.1.1 version

4598


why is sas considered self-documenting? : Sas programming

675


What are the difference between sas functions and procedures?

633