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

This entry was posted in General. Bookmark the permalink. Post a comment or leave

1 Answers   Quintiles,


Are you familiar with special input delimiters How are they used?

3 Answers  


how to change the execute of macro

1 Answers   Mind Tree,


what is information maps?

1 Answers   CitiGroup,


What is SAS informats?

1 Answers  


how do i get last 10obs from a dataset when we don't know about the number of obsevations in that dataset?

7 Answers   TCS,


Code the MEANS to produce output to be used later.

2 Answers  


describe the interaction table in sas di? : Sas-di

1 Answers  


What's the difference between VAR A1 - A4 and VAR A1 - A4?

1 Answers   Quintiles,


How would you compile all macros from a folder in a study, within the autoexec program?

1 Answers  


What are the difference between ceil and floor functions in sas?

1 Answers  


What is Tabulate.?Why we use it.? Which type of output we get from Tabulate.?

3 Answers   TCS,


Categories