string to float java

Java
String output = Float.parseFloat(floatNum); /** convert float to string using objName.parse(ObjName) <--capitalized usually. */
Source

Also in Java: