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: 

String to float to NUMC conversion

Former Member
0 Kudos

Hi All,

My requirement is:

I will have 2 float or numc type parameters and once i get the input from user i should be giving the output as

Result = flt1 - flt2 (Ex: flt1 = 0.0001 and flt2 = 0.0004 then result should be like range i.e. 0.0001 - 0.0004)

and result should also be of float or numc type.

Currently, I m susing 2 strings and concatenating the user inputs and storing in lv_str3 but since my result variable is of type float i get a dump which says "Unable to interpret "9.0001 - 8.0090 " as a number." In short dump i could see Runtime Errors : CONVT_NO_NUMBER and Exception : CX_SY_CONVERSION_NO_NUMBER

Can anybody help me in this regard.

Thank You.

Regards,

Soumya

1 REPLY 1

Sandeep_Kumar
Advisor
Advisor
0 Kudos

Use FM : FLTP_CHAR_CONVERSION and then concatenate both.