随笔 - 4  文章 - 13  trackbacks - 0
<2008年11月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

常用链接

留言簿(1)

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜

11 2008 档案
IEEE754标准规定的五种四舍五入方法      摘要: 先看下如下代码:
double dTest=82.545d;
DecimalFormat format=new DecimalFormat("0.00");
System.out.println(format.format(dTest));

你觉得会输出什么?82.55?还是82.54?  阅读全文
posted @ 2008-11-17 16:50 foxinsky 阅读(2206) | 评论 (2)  编辑