cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Char to float

Former Member
0 Kudos

Hi all,

Am wanting to convert a char value (the infoobject is defined as NUMC) into float in order to perform a calculation in the FOX formula. It would not allow the char value to be stored into a float variable...comes back wz an error message - Types of operands F and <infoobject_numc> do not agree.

Any ways of doing this? I thought about using a function to perform the conversion from char to float format but dont knw if such a function exists on the BI system?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Unfortunately there seems to be no standard command in FOX to perform this operation.

Former Member
0 Kudos

Hi,

I sometimes use a local variable of type STRING to pass on values to other data types:

DATA local type STRING.

local = A.

B = local.

But I'm not sure it will work for you. If not, you can do it with an exit function.

D