[kaffe] Simple program shows strange results

Ito Kazumitsu kaz at maczuka.gcd.org
Tue Mar 4 07:13:01 PST 2003


>>>>> ":" == Ito Kazumitsu <kaz at maczuka.gcd.org> writes:

:> I wonder what is happening.

I have made a simpler test program:

bash-2.05b$ cat Test.java; javac Test.java; java Test
public class Test {
  public static void main(String[] args) {
      float x = 10.0f;
      if (x < 7.0f) {
        System.err.println("x<7: " + x);
        x = 7.0f;
      }
      System.err.println(x);
  }
}
4.8169137E-34
bash-2.05b$

Isn't it strange?




More information about the kaffe mailing list