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

Mention sas system options to debug sas macros.

0 Answers  


what is sas enterprise intelligence architecture? : Sas-bi

0 Answers  


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

0 Answers  


In SAS how to read the variable values having different formats. eg:mar99,mar1999 (in a single variable)

8 Answers   GSK GlaxoSmithKline,


How do you control the number of observations and/or variables read or written?

0 Answers  






What is Transaction...? And what are Comment, Roll back n Save point..?

2 Answers  


Explain by-group processing?

0 Answers  


why is a stop statement needed for the point=option on a set statement? : Sas programming

0 Answers  


If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?

4 Answers  


what type of graphs we will create(for 2+years candidates)?

0 Answers   Accenture, Icon,


What is the basic syntax style in SAS?

0 Answers  


Name types of category in which SAS Informats are placed?

0 Answers  


Categories