有人解释关键字strictfp
在下面的类中意味着什么?关键字strictfp是什么意思?
public strictfp class Demo {
public static void main(String[] args) {
double d = 8e+307;
/** affiche 4 * d /2 donc 2 * d */
System.out.println(4 * d/2);
/** affiche 2 * d */
System.out.println(2 * d);
}
}
@Karthikeyan Vaithilingam我也发现这个[什么是strictfp修饰符?什么时候我会考虑使用它?](http://www.jguru.com/faq/view.jsp?EID=17544) – hulk