‎2008 Jul 04 1:51 PM
hi friends,
How to multyply floating point values.
what is the data type.
example:
t_final-diff : currency value.
t_final-lbkum : mbewh-lbkum field
t_final-tstock = t_final-diff * t_final-lbkum
near above statement programe go to dump.
please floating values how to multiply and what is the data type.
‎2008 Jul 04 1:52 PM
‎2008 Jul 04 2:02 PM
Hi,
Declare t_final-tstock as TYPE P DECIMALS 2 ( Decimalsa as per ur requirement).
I think dump is because of field length.
You declate t_final-tstock as TYPE P then try once.
Regards,
Rajitha.
‎2008 Jul 05 12:24 AM
Hi,
Check this:
DATA:
W_F1 TYPE P DECIMALS 2 VALUE '100.12',
W_F2 TYPE F VALUE '200.15',
W_F3 TYPE P DECIMALS 2.
W_F3 = W_F1 * W_F2.
WRITE: W_F3.Regards
Adil
‎2008 Jul 05 6:38 AM
hi,.....
in declaration for ariables go for type p decimals 2 instead of floating point numbers..you will get calculation accuracy and it will also avoid dump...
just check.....