public class test2 {
public static void main(String[] args) {
double tmp = 123.456;
String str = String.valueOf(tmp);
System.out.println(str);
}
}
java 中double类型数据转换为String类型
最新推荐文章于 2023-06-21 18:57:46 发布
public class test2 {
public static void main(String[] args) {
double tmp = 123.456;
String str = String.valueOf(tmp);
System.out.println(str);
}
}
5464
2363
9247

被折叠的 条评论
为什么被折叠?