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?

Answers were Sorted based on User's Feedback



How did you use the round function?give an example(don't say it will round to the nearest int..

Answer / unknown

round fuction works such that the first argument in the
fuction is to the nearest multiple of the second argument

Is This Answer Correct ?    10 Yes 0 No

How did you use the round function?give an example(don't say it will round to the nearest int..

Answer / 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

More SAS Interview Questions

Differentiate input and infile.

0 Answers  


how can u create zero observation dataset?

11 Answers   CitiGroup,


What is the function of Stop statement in a SAS Program?

0 Answers  


If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn’t have a value?

3 Answers   Accenture,


Do you need to know if there are any missing values?

0 Answers  






how do you debug and test your sas programs? : Sas programming

0 Answers  


what are some good sas programming practices for processing very large data sets? : Sas programming

0 Answers  


what are the different ways of merging two datasets.name atleast 4.

2 Answers  


What is the difference between INPUT and INFILE ?

0 Answers  


What are exact SAS Base contents..?N what r SAS Tools..?

1 Answers  


How would you create multiple observations from a single observation?

1 Answers   Quintiles,


If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn?t have a value?

6 Answers  


Categories