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 many types of prompts are there? : Sas-bi
how do you want missing values handled? : Sas programming
What’s the difference between var b1 – b3 and var b1 — b3?
What are the difference between ceil and floor functions in sas?
what is sas olap server? : Sas-di
what is the use of sas management console? : Sas-di
What is by-group processing?
How do you control the number of observations and/or variables read or written?
What does PROC print, and PROC contents do?
What are the ways in which macro variables can be created in sas programming?
what is sas metadata server? : Sas-di
What is the difference between using drop = data set option in data statement and set statement?
For clinical entire study how many tables will create approx?
how are numeric and character missing values represented internally? : Sas programming
Describe the function and untility of the most difficult SAS macro that you have written.