string类型转Float类型

String df="12.2";
float a=Float.parseFloat(df);

猜你喜欢

转载自blog.51cto.com/1929297/2612400