Gidday Guilherme try this...

String test2 = "33";
float test = (new Float(test2)).floatValue();

cheers pb...


Guilherme - PerConsult wrote:
>
> Hi,
>
> 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?????
>
> Thanks!
>
>    Guilherme dos Santos Tsubota
>    _________________________________
>    Perrotti Informatica - PerConsult
>    Sao Paulo - SP - Brazil
>
> ===========================================================================
> 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

--




Peter Blakeley
Head of Software Development Coolcat Software Pty. Ltd.
http://www.coolcat.com.au/
Director Bug Audit Services
http://www.coolcat.com.au/bug_audit
Director Clearwater WebTech Pty. Ltd.


A financial instrument is a device used by a Banker to pick your pocket.
It is said an art degree is a licence to know it all, I am lucky I need
no art degree.
;-})

===========================================================================
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

Reply via email to