强制转换是不可能的了 String a="132.456"; float b=Float.parseFloat(a);
Float.valueOf("12")
String s = "0.005"; float f = new float(s);