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: 

exponent to decimal value.?

Former Member
0 Kudos

hi,

I have exponent value in data type string. I want to convert that exponent value to decimal.

Is there any FM or is there any logic please..help..

main problem exponent value data type is string.

please help

Thanks

venkatesh p

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

You can try like this:

data: i_s type string value '1E-02',
      i_f type f, " value '1E-02',
      i_p(12) type p decimals 5.

write: / i_s.

i_f = i_s.
write:/  i_f.

i_p = i_f.
write: / i_p.

Regards,

Naimesh Patel

3 REPLIES 3

Former Member
0 Kudos

Hi,

Check this FM 'MURC_ROUND_FLOAT_TO_PACKED'

Regards,

Satish

naimesh_patel
Active Contributor
0 Kudos

You can try like this:

data: i_s type string value '1E-02',
      i_f type f, " value '1E-02',
      i_p(12) type p decimals 5.

write: / i_s.

i_f = i_s.
write:/  i_f.

i_p = i_f.
write: / i_p.

Regards,

Naimesh Patel

0 Kudos

thanks ..i have given points ..is there any standard FM?