> How can I convert a string to a float? In JDK 1.2 I can use:
>
> String test2 = "33";
> float test = Float.parseFloat(test2);
>
> But in JDK 1.1.6, how can I do this?????
you can try the infamous
float test= Float.valueOf(test2).floatValue();
AndySoft
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html