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

Explain how merging helps to combine data sets.

618


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

553


How do you test for missing values?

1058


Give some examples where proc report’s defaults are same as proc print’s defaults?

643


Do you need to rearrange the order of the data for the report?

1837






What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1230


What are the functions which are used for character handling functions?

620


How we can create SAS USER DEFINED CODE?

1614


what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming

728


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

945


what versions of sas have you used (on which platforms)? : Sas programming

584


what is treatment emergent events and treatment emregent adverse event

1943


What are the best sas programming practices for handling very large datasets? : sas-grid-administration

570


How to sort in descending order?

794


Explain append procedure?

636