Skip to Content
Former Member
Jun 24, 2010 at 05:58 AM

String to float to NUMC conversion


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.