宇筱博客

  • 解决办法
  • 学无止境
  • 记录时光
  • 百宝箱
宇筱博客
点滴记忆,汇聚成海。
  1. 首页
  2. 解决办法
  3. 正文

Java 数字添加千分位

2022年11月10日 248点热度 0人点赞 0条评论
public static void main(String[] args) {
int aaa= 10001000;
String str= DecimalFormat.getNumberInstance().format(aaa);//该方法精度只保留小数点后三位
System.out.println(str);
}

原文连接:点击进入

Post Views: 182
标签: 暂无
最后更新:2022年11月10日

小渔民

这个人很懒,什么都没留下

点赞
< 上一篇
censys,2022 年最新好用 Jetbrains 激活服务器,全部产品通用" href="https://www.timeit.cn/post-2160.html">下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2023 渔人码头. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备15017825号-2