Application Development 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: 

How convert '4.8480000000000001E+02' to numberic.

Former Member
0 Kudos

Hi all,

How solve this '4.8480000000000001E+02' convert to numberic.

Because i use table KBED i take fiel name KBEASOLL (KBED~KBEASOLL)

This mean start machine time can read from 1 to 9.

But i show in table KBED is '4.8480000000000001E+02' how can convert to numberic 5, 6, 7 ...???

thanks so much.

5 REPLIES 5

Former Member
0 Kudos

Hi Tham,

just use this,

data:

expo type ANZ_TAGE,

temp(16) type p decimals 14.

expo = '3.9604320000000000E+08'.

move expo to temp.

write: expo,temp.

if helpful dont forget to reward points.

Regards,

DVNS

Former Member
0 Kudos

Hi,

1) just declare a variable say fld1 type p decimals 2(as much as u need)

and move KBED-KBEASOLL to fld1...it ll be converted automatically.

check dat by writing it write : fld1.

2) use FM FLTP_CHAR_CONVERSION

CALL FUNCTION 'FLTP_CHAR_CONVERSION'

EXPORTING

decim = 0

expon = 0

input = value_in

ivalu = 'X'

IMPORTING

flstr = value_out.(type c)

Cheers,

Will.

Former Member
0 Kudos

Hi Tham,

If your problem is solved please close the thread.

Former Member
0 Kudos

thanks DVNS.

data s type ANZ_TAGE.

i can solved

ex: 2.796800000000000E+03

and convert 2,796.80000000000020

please more to me

i can not write 2,796.800

because write: temp(16)

pls ...

how i can write 2,796.800 ???

thanks so much.

0 Kudos

hi,

write : temp decimals 3.