Skip to Content

Problem in dividing a value with different dec places

Hi Team,

I have a below scenario and can u help me out in this .

data : w_a type p decimal 2,

w_b type p decimal 3.

w_temp = w_a / w_b .

Value of w_temp is getting varied due to different decimal places .

Can i know , how to fix it .

eg :

w_a = 1350.00

w_b = 10.000

w_temp = 1.350

But, I need output as 135.00

Regards,

Karthik S

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 15, 2016 at 11:42 AM

    Hi,

    Did you switch 'fixed point arithmetic' in program's attributes?

    Regards,

    Eli

    Add comment
    10|10000 characters needed characters exceeded