‎2009 Aug 17 9:25 AM
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
‎2009 Aug 17 9:30 AM
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
‎2009 Aug 17 9:33 AM
hi,
thanks for ur reply.
i cheked alredy tick mark was there..
kindly let me know ...
‎2009 Aug 17 9:39 AM
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
‎2009 Aug 17 10:42 AM
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
‎2009 Aug 19 8:56 AM
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