会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
灰色飘零
成功并不难,贵在坚持!
博客园
首页
联系
管理
2018年8月11日
Java 使用 int 数据计算百分比
摘要: int diliverNum=3;//举例子的变量 int queryMailNum=9;//举例子的变量 // 创建一个数值格式化对象 NumberFormat numberFormat = NumberFormat.getInstance(); // 设置精确到小数点后2位 numberFormat.setMaximumFractionDigits(2); Strin...
阅读全文
posted @ 2018-08-11 13:39 灰色飘零
阅读(33419)
评论(0)
推荐(3)
编辑
公告