strictfp是什么关键字?

dragonwind 2002-03-28 08:35:34
java.util.Math是这样声明的:
public final strictfp class Math


...全文
106 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
leonzhao 2002-03-29
  • 打赏
  • 举报
回复
简单的说就是浮点数更精确了。
leonzhao 2002-03-29
  • 打赏
  • 举报
回复
The keyword strictfp allows you to have more (predictable) control over floating-point arithmetic. It may be used (as a modifier) to classes, interfaces and methods. If a floating point expression is within a strictfp "scope", the results will be as predictable as described in IEEE 754 (see link below). If the expression is not FP-strict, the specification is more tolerant and the result is determined by the extra precision bits that may be used in evaluating the expression (extended exponent range implemented by the VM being used).
Check out the other link below (Changes to the Java Language Specification).

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧