Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Division without Fixed Point Arithmetic

chris_mowl
Active Participant
0 Likes
1,034

Hello,

I am trying to divide 1 by a decimal, i.e. 1 / 7.75027, in Include RV63A900 of Function Group V61A. Since the ' Fixed Point Arithmetic' checkbox is not checked, I am unable to get this calculation to work.

I have tried different scenarios of using a floating point field to receive the quotient but nothing has worked.

Any suggestions?

Thank you,

Chris Mowl

2 REPLIES 2
Read only

former_member156446
Active Contributor
0 Likes
689

I use floating variable some thing like this :

data: v_f TYPE f,
         v_c TYPE char12.

      v_f = ( wa_komp_o-netwr / o_komp-mglme ).

* Due to decimal issues had to use Floating point value
* for calculation of condition base value
      CALL FUNCTION 'FLTP_CHAR_CONVERSION'
        EXPORTING
          decim = 5
          input = v_f
        IMPORTING
          flstr = v_c.

      v_amount = v_c * 10.

Read only

chris_mowl
Active Participant
0 Likes
689

I was able to use function module CONVERT_TO_FOREIGN_CURRENCY.

Thanks for the response anyway.