Application Development 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: 

Problem in dividing a value with different dec places

former_member219737
Participant
0 Kudos

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

1 REPLY 1

iklovski
Active Contributor
0 Kudos

Hi,

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

Regards,

Eli