Skip to Content
0

Problem in dividing a value with different dec places

Nov 15, 2016 at 11:36 AM

31

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Eli Klovski
Nov 15, 2016 at 11:42 AM
0

Hi,

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

Regards,

Eli


jnmsp.png (2.7 kB)
Share
10 |10000 characters needed characters left characters exceeded