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

exponent to decimal value.?

Former Member
0 Likes
667

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
Read only

naimesh_patel
Active Contributor
0 Likes
617

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

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

3 REPLIES 3
Read only

Former Member
0 Likes
617

Hi,

Check this FM 'MURC_ROUND_FLOAT_TO_PACKED'

Regards,

Satish

Read only

naimesh_patel
Active Contributor
0 Likes
618

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

Read only

0 Likes
617

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