File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
How do I change a string into a float?
Joined: Sep 02, 2008
May 13, 2009 11:51:11
I have a
input and I know how to change it into a interget using
(interger variable) = Integer.parseInt(String variable);
How can I change a String into a float?
Joined: Jan 01, 2009
May 13, 2009 11:59:37
The first place to check is Java Float API . Here it
Joined: Jun 01, 2007
May 13, 2009 12:48:19
In a pretty similar fashion.
float f = Float.parseFloat(stringVariable);
I agree. Here's the link:
subject: How do I change a string into a float?
Use URL in applet to read ASCII files in loop
Precision loss in String to Float and double to float
conversion from String to any data type
How to check a datatype of a variable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014