说实话我也不太清楚不过看看这个也许明白一些,可惜我的英语太差了!_!Unlike some of the numeric functions of class StrictMath, all implementations of the equivalent functions of class Math are not defined to return the bit-for-bit same results. This relaxation permits better-performing implementations where strict reproducibility is not required. By default many of the Math functions simply delegate to the equivalent functions in StrictMath for their implementations. Code generators are encouraged to use platform-specific native libraries or microprocessor instructions, where available, to provide higher-performance implementations of Math functions. Such higher-performance implementations still must conform to the specification for Math.
解决方案 »
- 新人,请教一个java小问题
- 关于ArraryList的问题
- 事件模型:如何定义数据到达事件?
- J2EE初学者要看什么书?
- 0.2*0.2*0.2=多少 为什么 在线等 散分
- JAVA是不是还不能做出这个效果来???如果未在表格一行的最后单元格按下回车键,就让回车动作等于TAB动作,反之到了最后单元格按下回车
- 看到一段诡异的代码,求解释
- 怎样将一个10进制串转成真正的字符串?如“彰”代表的是汉字“彰”字。
- 错在哪里?(getAttribute)
- maven引入这个插件一直报错
- 怎么得到一个文件的创建时间?????
- 有什么办法可以把JTree的数据,转成一个XML文件?有解的绝对给50分,不食言
-----------------------------------------------------------
我的英语也不怎么样,说实话,刚才那段话,我已经研究半天了,就是没搞明白。
对于什么“计算机浮点单元的例程”,和“自由分布数学库”(fdlibm),偶一点都没听说过啊。就是说 Math 会出现不同平台下不同结果的情况,但是速度比较快,StrictMath正好相反,是吗?再请问一个问题:
我测试Math.round() 方法时,round(-1.5)得出结果竟然是-1,为什么不是-2呢?