wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes How do I change a string into a float? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How do I change a string into a float?" Watch "How do I change a string into a float?" New topic
Author

How do I change a string into a float?

Juan Sifuentes
Greenhorn

Joined: Sep 02, 2008
Posts: 6
I have a string 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?
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874


Juan,

The first place to check is Java Float API . Here it is
Bill Cruise
Ranch Hand

Joined: Jun 01, 2007
Posts: 148
In a pretty similar fashion.



javadoc
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I change a string into a float?
 
Similar Threads
conversion from String to any data type
Precision loss in String to Float and double to float
Use URL in applet to read ASCII files in loop
How to check a datatype of a variable
GC doubt