on 07-01-2008 4:21 AM
constants : pi type p decimals 2 value '3.1'.
when we write it what is the value of pi?
Hi,
try it out in SE38.
constants : pi type p decimals 2 value '3.1'.
write:/ pi .
it will display 3.10.
hope it will help you.
Thanks & Regards,
Rajesh Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Value of pi is 3.10
regards
palak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
value of p is 3.10 as decimal is 2.
if value is '3.1234' and decimal is 3 then value is 3.123
thanks
Sachin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi madhu,
the value of pi is 3.10
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhu,
constants : pi type p decimals 2 value '3.1'.
This will result 3.10 as variable pi has been declared as packed decimal with 2 decimal places. It means in result 2 numerals will be there after the decimal point.
Even if you declare like..constants : pi type p decimals 2 value '3'.
Again the result will be 3.00.
Hope your prob resolved.
thanks
nitesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
The answer is 3.10.
regards,
sravan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello madhu,
In thwe code,
constants : pi type p decimals 2 value '3.1'.
The value of pi is ' 3.10 ' as it is declared as a decimal with decimal places 2 and it cannot be changed throughtout the program as it is declared as a constant.
Regards,
Bhumika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Welcome to SDN !!!!!!!! ...
The value of pi is 3.10....
Regards,
Santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhu,
WELCOME TO SDN!!!
The value of PI is 3.10.
Best regards,
raam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.