Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
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
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-2015