how can i get the exact result

Question: i have experssion:

the variables:
alv_tab_sum-profit type p decimals 2.

alv_tab_sum-sum_hen like ce1scop-erlos ->
(Data type CURR No. characters 15, Decimal places 2).

total_vvcgs like ce1scop-erlos ->
(Data type CURR No. characters 15, Decimal places 2).


alv_tab_sum-profit =
( 100 * ( ( alv_tab_sum-sum_hen - total_vvcgs ) / total_vvcgs ) * 100 ).


i get the round number. i want to get the exact result !

how can i get the exact result ? ? ?

Answer:
HI,

Currently variable 'alv_tab_sum-profit' has been defined with 2 decimals, hence it is getting rounded to 2 decimals. If you want the exact result you need to increase the no of decimals or you may defined it as a character variable but in any case you will have to comit either, no of decimal places or on the length of the character variable, which will finally decide where exactly rounding takes place.

Regards
Raju Chitale
Copyright ?2007 - 2008 www.jt77.com