Skip to Content
0
Former Member
Aug 01, 2005 at 08:18 AM

Problem with Decimal Places

15 Views

Hi,

When I debug the code the following is what I get;

subtotal_price = wa_subtotl-J_3AFKIMG * grade_A_price.

wa_subtotl-J_3AFKIMG -> 15.000 (TYPE p DECIMALS 3 / This field is for Quantity and 3 decimal places is a must)

grade_A_price -> 2.20 (TYPE p DECIMALS 2 / This is Price)

subtotal_price -> 33000.00 (TYPE p DECIMALS 2 / Multiplication of Qty and Price)

Why the "subtotal_price" appear as "33000.00" when it should be "33", how ro solve this issue?

Thanks,

Kishan