Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Packed Data type

Former Member
0 Likes
330

Hi Experts

I have declared the data type as follows

Data : amt type p decimals 3. * But its decimal places = 3

But in the result am getting only 2 decimal places.

what could be the reason.

Pls suggest me on this.

Regards

Rajaram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
309

Hi,

just copy this code and activate this, execute this code.

Data : amt type p decimals 3.

amt = 50 / 7.

write:/ amt.

now amt = 7.143.Here, as you have declared amt as

Data : amt type p decimals 3 you are getting output as 7.143

hope this works.

1 REPLY 1
Read only

Former Member
0 Likes
310

Hi,

just copy this code and activate this, execute this code.

Data : amt type p decimals 3.

amt = 50 / 7.

write:/ amt.

now amt = 7.143.Here, as you have declared amt as

Data : amt type p decimals 3 you are getting output as 7.143

hope this works.