import java.text.*; //格式化数字 public class number { public static void main(String args[]) { double d = 123456.78; DecimalFormat df = new DecimalFormat("###,###"); System.out.println(df.format(d)); } }
posted on 2016-06-12 14:55 nickTimer 阅读(591) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 nickTimer Powered by .NET 9.0 on Kubernetes