[kaffe] Bug [CVS]: 1f == 0.0

Benja Fallenstein b.fallenstein at gmx.de
Sun Mar 30 11:50:02 PST 2003


Hi all,

This code:
> public class Bug {
>     public static void main(String[] args) {
> 	float f = 1.0f;
> 	System.out.println("f = "+f);
>     }
> }

gives:

> benja at joy:/tmp$ /home/benja/j2sdk1.4.1_01/bin/java -cp . Bug
> f = 1.0
> benja at joy:/tmp$ /usr/local/kaffe/bin/java -cp . Bug
> f = 0.0

My Kaffe version string is:
> Engine: Just-in-time v3   Version: 1.1.x-cvs   Java Version: 1.1

Oh joy!

Thanks,
- Benja





More information about the kaffe mailing list