Please help!How to convert String to float?

I meet a problem.That is I need to convert a String variable to a float variable.for example:convert String s="123" to float f=123.0
[167 byte] By [xueqingwang] at [2007-9-26 16:14:54]
# 1
OK OK this is wisher1 the anser is go to www.download.com look under java and than type in converter in the search box or convert string to float see if that works ok bye
wisher1 at 2007-7-2 19:40:55 > top of Java-index,Other Topics,Java Community Process (JCP) Program...
# 2
float f = Float.parseFloat(s);
plucien at 2007-7-2 19:40:55 > top of Java-index,Other Topics,Java Community Process (JCP) Program...