2007 Dec 21 3:40 AM
I have faced a small problem...but its irritating......
DATA:a type p decmals 2 value '8.75'.
DATA:b type p decmals 2 value '8.75'.
data:c type p decimals 2.
c = a / b.
here c must contain 1.
but for me its storing as 0.01.
what may be the problem.....Anybody faced this kind of issue...
2007 Dec 21 3:44 AM
goto program attributes
check the box "fixed point arithmetic"
save & activate
Thanks a lot ramu
2007 Dec 21 3:44 AM
goto program attributes
check the box "fixed point arithmetic"
save & activate
2007 Dec 21 3:47 AM
Hi friend,
Please remove that decimal for the data type c.
u r declaring decimal as 2.
so that it showing 0.01
Please reward points if is useful to u.
Regards,
satish
2007 Dec 21 4:00 AM
Hi
u have declared c as type p decimals 2 so ur output is getting two zero places.
if u type c as type p. the output will be 1.
data: c type p.
Thanks&Regards,
S.Gangi reddy.
2007 Dec 21 4:06 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |