When I run the following I get the same results whether I put strictfp or not.
I thought without strictfp, it would not give infinity. Am I wrong?
Code:
public strictfp class FpDemo3 {
public static void main(String[] args) {
double d = 8e+307;
System.out.println(4.0 * d * 0.5);
System.out.println(2.0 * d);
}
}
Comment