You need to manually convert the string into a float by using some string functions to decide what is before and after the decimal marker (. or , depending on where in the world you live).
Basic logic of it is:
-read the string as is
-into a substring (let's call it temp1) you load all the numbers before the period or comma.
-into another substring (let's call it temp2) you load the numbers after the period or comma
-next you load a float with the value of temp1 + the value of temp2 divided 10 per decimal
I have such a function that reads a string from text-input and do the convertion into float for an application I've made. It basically reads the weight of a LED panel with 0 to 3 decimals. Code is supplied, but
is probably not that easy to follow, as I've not altered it for readability... But it do work
if textEdit = 7
panelKg$ = ""
Kg$ = ""
Kg1$ = ""
Kg2$ = ""
KgDec = 0
KgDiv# = 0
KgFlag = 0
panelKg$ = getTextInput()
c = len(panelKg$)
for b = 1 to c
if KgFlag = 0
Kg$ = mid(panelKg$, b, 1)
if Kg$ <> "." and kg$ <> ","
Kg1$ = Kg1$ + Kg$
endIf
if Kg$ = "." or Kg$ = ","
KgFlag = 1
inc b
endIf
endIf
if KgFlag = 1
if KgDec < 3
Kg2$ = Kg2$ + mid(panelKg$, b, 1)
inc KgDec
endIf
endIf
next b
if KgDec = 0
KgDiv# = 1.00
endIf
if KgDec = 1
KgDiv# = 10.00
endIf
if KgDec = 2
KgDiv# = 100.00
endIf
if KgDec = 3
KgDiv# = 1000.00
endIf
panel[currPanel].kg# = val(kg1$) + (val(kg2$) / KgDiv#)
SetTextString(15, str(panel[currPanel].kg#, 2))
textEdit = 0
endIf