Here you can find the source of floatToString(Float num)
public static String floatToString(Float num)
//package com.java2s; //License from project: BSD License public class Main { public static String floatToString(Float num) { java.text.NumberFormat f = java.text.NumberFormat.getInstance(); f.setGroupingUsed(false);/*from w w w. ja v a2 s .c o m*/ return f.format(num); } }