hi,
When i am multiplying
xkomv-kwert = xkomv-kbetr(11.14) * KOMP-MGAME( 1.000 this is one).
it is giving 11140.00 what need to be done, I am aware because of the QUANTITY field, now please tell me
1. Whether I need to pass the UNIT field? HOW?
2. or I need do use some numerator / denominator.
regards,
Prabhu
Prabhu
hi Prabhu,
goto the attributes of the program and check if <b>Fixed Point Arithmetic</b> checkbox is checked or not
<b>Fixed point arithmetic</b>
If you mark this checkbox, all caluculations in the program will use
fixed point arithmetic.
If you do not, packed numbers (ABAP/4 type P, Dictionary types CURR, DEC
or QUAN) will be treated as integers when they are used in assignments,
comparisons and calculations, irrespective of the number of decimal
places defined. Intermediate results in arithmetic calculations will
also be rounded to the next whole number. The number of decimal places
defined is only taken into account when you output the answer using the
WRITE statement.
Add a comment