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

function module to convert string to decimals?

Former Member
0 Likes
2,615

HI,

is there any function module to convert string value in to decimals...string value contains exponent form...or any other way to convert if there is no funtion module..

please let me know...

Thanks

Venkatesh

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,014

Like this?



data: str type string.

data: f type f.
data: p type p decimals 3.

str = '1.2345678900000000E+08'.

f = str.

p = f.

write:/ p.

Regards,

RIch Heilman

Read only

0 Likes
1,014

hi..

Thanks for your information..

I have done this way only..but we are getting exception..

Read only

ferry_lianto
Active Contributor
0 Likes
1,014

Hi,

Please try this FM HRCM_STRING_TO_AMOUNT_CONVERT.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,014

resolved

Read only

0 Likes
1,014

hi

i have the same issue ..

how did u resolve it?