aspose 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
 
 
subject: How do I change a string into a float?