File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Use URL in applet to read ASCII files in loop
conversion from String to any data type
GC doubt
Precision loss in String to Float and double to float
How to check a datatype of a variable