2010 May 05 5:38 AM
Here is following code i have in pricing routine. But after division values coming wrongly in type P variable
data: v_p type p decimals 4.
data: v_c(20) type c value '72.50'.
v_p = v_c / 1000.
After this I am getting V_P as 0.0007
I am expecting the value of V_P is 0.0725
Any Info
a®
2010 May 05 5:50 AM
Hi,
Check "fixed Point arithmetic" property in program attributes.
Regards
Vinod
2010 May 05 5:58 AM
2010 May 05 6:03 AM
REPORT Z_MAT_PROGRAM.
data: v_p type p decimals 4.
data: v_c(20) type c value '72.50'.
v_p = v_c / 1000.
write : v_pI just copy pasted this code....I get the result as 0.0725. But when i unchecked the "Fixed Point Arithematic" in program attributes the value displays as 0.0007
Edited by: Mishra.Manas on May 5, 2010 7:08 AM