Parseing a Float from a string.

Does anyone know how to parse a float from a string variable? The documentation says there is a method for it, it doesn't say what it is(?).I.e. the equavilent of int this_num.parseint(this_string) only for a float.Thanks.
[251 byte] By [markrob4] at [2007-9-26 2:38:11]
# 1
hehe, you almost had it in the title. It's a static method in the java.lang.Float class.String floatString = "0.235";float parsedFloat = Float.parseFloat(floatString);
Enygma42 at 2007-6-29 10:08:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks, that helped...now for another apparently stupid question....

How do you add two floats?

I have:

fInvAmount = fInvAmount + Float.parseFloat(rsSmartStreamInvoice.getString("invoice_amt"))

and it tells me that 'operator + cannot be applied to java.lang.Float,float'

?

markrob4 at 2007-6-29 10:08:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...