if x=round(26.3,10)-1 then x= how much and how explain?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
what is information maps?
what is the difference between proc means and proc tabulate?
I use NOCUM/NOPERCENT option in the tables statement like this Proc freq data = deepak; tables x y /nocum nopercent; run; Here I get nopercent and nocum in the output only for variables x and y. How do i do it for all variables? Deepak
In the following DATA step, what is needed for ‘fraction’ to print to the log? data _null_; x=1/3; if x=.3333 then put ‘fraction’; run;
Which is the best training institute for SAS in hyderabad.
112 Answers Stansys Software Solutions,
What are the statements that are executed only?
which date function advances a date, time or datetime value by a given interval? : Sas programming
What is instream data in SAS?
If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn’t have a value?
How do you debug macros?
how to assign a macro value to a variable?
what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming