Question: how can I make data from String type to Float type!

I get a data of string type from .txt file,but i want to use the data from string type to float tpye in my program,In fact ,i had tried in many methods,convert,sscanf,type etc.but, i coundnt solve this problem until now.if u know,please tell me how can i do.

example:

x:="0.01"⇒x=0.01

Please Wait...