Convert from float to String in Java
Description
The following code shows how to convert from float to String.
Example
/* www .j a v a 2 s .co m*/
public class Main {
public static void main(String[] args) throws Exception {
String str = Float.toString(0.3F);
}
}
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »