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
What is the length assigned to the target variable by the scan function?
Explain data_null_?
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
What is your favorite all time computer book? Why?
what is operational data and operational system? : Sas-di
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
What does proc print, and proc contents are used for?
What are the ways in which macro variables can be created in sas programming?
For what purposes have you used sas macros? : sas-macro
What are the differences between sum function and using “+” operator?
what is the use of proc sql? : Sas programming
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
How does the internal authentication work in sas? : sas-grid-administration
What are SAS/ACCESS and SAS/CONNECT?
explain the main difference between the nodup and nodupkey options? : Sas-administrator