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

multiplication probleam

Former Member
0 Likes
597

hi,

i am multipling 23.00 and 1, instead of getting 23.00 i am getting 23.

please help me. this may be simplle but for me it is giving a big probleam

please tell me

5 REPLIES 5
Read only

Former Member
0 Likes
572

Hi,

Go to attributes of the program and there you would have a check box Fixed point arithmetic that should be checked if not check the check box abd check.

Regards,

Himanshu

Read only

0 Likes
572

hi,

thanks for ur reply.

i cheked alredy tick mark was there..

kindly let me know ...

Read only

0 Likes
572

Hi,

Please check the target field should be of the same type as the field having value 23.00 that is it should be pooled with 2 decimals.

Regards,

Himanshu

Read only

0 Likes
572

Hi,

Have u declared the variable with packed or floating data type. refer code below, but it is getting output as '23.00',

data : num type p decimals 2 value '23.00'.

data m type p decimals 2.

m = num * 1.

write : m.

Hope it will clear

GR

Read only

0 Likes
572

Hi,

Declare the 1 as a constant and of the same type as the variable holding the value 23.00. Also take into considerataion that the destination variable is also of same type.

This should defintely solve the problem.

Rgds,

Swetha