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 to generate means for every subject;

4 Answers   Mind Tree,


what are the benefits of data integration? : Sas-di

0 Answers  


What is the use of PROC gplot?

0 Answers  


Name the option to produce a frequency line items rather that a table.

2 Answers  


If a variable contains letters or special characters, can it be numeric data type?

0 Answers  






Explain what is SAS informats?

0 Answers  


What are the ways to do a “table lookup” in sas?

0 Answers  


Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.

0 Answers  


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

0 Answers  


what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming

0 Answers  


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

1 Answers  


How would you keep from overlaying the a SAS set with its sorted version?

4 Answers  


Categories