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

What is the length assigned to the target variable by the scan function?

885


Explain data_null_?

790


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

753


What is your favorite all time computer book? Why?

2235


what is operational data and operational system? : Sas-di

835


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

927


What does proc print, and proc contents are used for?

798


What are the ways in which macro variables can be created in sas programming?

765


For what purposes have you used sas macros? : sas-macro

738


What are the differences between sum function and using “+” operator?

778


what is the use of proc sql? : Sas programming

769


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

806


How does the internal authentication work in sas? : sas-grid-administration

804


What are SAS/ACCESS and SAS/CONNECT?

841


explain the main difference between the nodup and nodupkey options? : Sas-administrator

906