我用下面的方法在Windows 8(英特尔凌动Z3775): public static strictfp void main(String args[])
{
float a = 0.000000002f;
float b = 90000300000000004f;
float c = a * b;
System.out.println(c);
}
虽然重构了一些代码,但我偶然发现了这种怪异现象。似乎不可能在不影响整个类的情况下控制初始化器的strictfp属性。例如: public class MyClass {
public final static float[] TABLE;
strictfp static { // this obviously doesn't compile
TABLE = new