if x=round(26.3,10)-1 then x= how much and how explain?

Answers were Sorted based on User's Feedback



if x=round(26.3,10)-1 then x= how much and how explain?..

Answer / ramprakash

ROUND FUNCTION
rounds the first argument to the nearest multiple of the
second argument, or to
the nearest integer when the second argument is omitted.

So the answer for x will be 29...

Is This Answer Correct ?    16 Yes 1 No

if x=round(26.3,10)-1 then x= how much and how explain?..

Answer / radhiv kumar sure

X=ROUND(26.3,10)-1;
AFTER ROUNDING THE VALUE
X=30-1;
X=29;

Is This Answer Correct ?    11 Yes 1 No

if x=round(26.3,10)-1 then x= how much and how explain?..

Answer / samba

Hello Its Me.. u r wrong. the answer is 29.

The ROUND function rounds the first argument to a value that is very close to a multiple of the second argument. The result might not be an exact multiple of the second argument.

Is This Answer Correct ?    2 Yes 0 No

if x=round(26.3,10)-1 then x= how much and how explain?..

Answer / vinod

Thanks for you answer Ramprakash

Is This Answer Correct ?    0 Yes 3 No

if x=round(26.3,10)-1 then x= how much and how explain?..

Answer / its me

The answer is 25 and not 29.
Can any one challenge on this?
It first rounds of the first argument to the nearest value.
The nearest value is 26 and then deducts 1 from that to be
25.

Is This Answer Correct ?    4 Yes 12 No

Post New Answer

More SAS Interview Questions

What are the special input delimiters used in SAS?

0 Answers  


Why do we use QUIT commmand for proc datasets and proc sql ???

3 Answers  


If you?re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?

1 Answers  


How the date 04oct1994 is stored in SAS,not only give the answer explain in brief?

5 Answers  


What is the difference between Proc tabulate and Proc print

4 Answers   CitiGroup,






how to handle in stream data containing semicolon in it?

3 Answers  


what is p-value

3 Answers   Accenture, Quintiles, Sristek,


what does .. meant in sas macros

3 Answers   D&B,


What is instream data in SAS?

1 Answers  


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

0 Answers  


There are 200 observations in a dataset, i want to pull out the observation no's 100, 150,180,190 by using Proc SQL? How you can get it?

5 Answers  


Mention how to limit decimal places for the variable using proc means?

0 Answers  


Categories