cancel
Showing results for 
Search instead for 
Did you mean: 

reports

Former Member
0 Kudos

constants : pi type p decimals 2 value '3.1'.

when we write it what is the value of pi?

Accepted Solutions (0)

Answers (9)

Answers (9)

Former Member
0 Kudos

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

Former Member
0 Kudos

Value of pi is 3.10

regards

palak

Former Member
0 Kudos

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

Former Member
0 Kudos

hi madhu,

the value of pi is 3.10

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

The answer is 3.10.

regards,

sravan.

Former Member
0 Kudos

hi,

some key words are made for permanent changes in SAP.If u define your constants with pi value...it will give numerical value for the same which is nothing but 3.14.

Pls rewards..!!!

Regards

Rag

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

Welcome to SDN !!!!!!!! ...

The value of pi is 3.10....

Regards,

Santosh

Former Member
0 Kudos

Hi Madhu,

WELCOME TO SDN!!!

The value of PI is 3.10.

Best regards,

raam