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

How would you determine the number of missing or nonmissing values in computations?

0 Answers  


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

0 Answers  


What is a macro routine?

0 Answers  


What is the difference between verification and validation?

9 Answers   Oracle,


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

1 Answers   Quintiles,






Tell me more about the parameters in macro? : sas-macro

0 Answers  


What are the efficacy variables in your study?

2 Answers   Accenture, Quintiles,


I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.

0 Answers  


what is the primary data source for the wrs? : Sas-bi

0 Answers  


What is the basic syntax style in SAS?

0 Answers  


How many versions came upto now in SAS?

3 Answers   CTS, TCS,


What Proc glm does?

0 Answers  


Categories