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

Problem with FLTP-CHAR Conversion

Former Member
0 Likes
523

Hi,

I am using FLTP-CHAR conversion function module, the problem i am facing is when i pass the FLTP value in the char value will be rounded off.

For ex: If FLTP value = 3.4942988715790001E+01, then CHAR value will be 34.9429887158.

U can find from the above ex. is that last 2 places 79 is rounded to 8. But i dont want this to happen.

Please help me out.

Thanks.

Hi,

I am using FLTP-CHAR conversion function module, the problem i am facing is when i pass the FLTP value in the char value will be rounded off.

For ex: If FLTP value = 3.4942988715790001E+01, then CHAR value will be 34.9429887158.

U can find from the above ex. is that last 2 places 79 is rounded to 8. But i dont want this to happen.

Please help me out.

Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
429

this is how you do it:

l_temp TYPE c,

l_data TYPE char5,

l_float TYPE p DECIMALS 1.

l_float = wa_values-atflv.

l_data = l_float.

CONDENSE l_data.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
429

Increase the DECIM place value and you will get the desired values...