Lang Learn Cards
Lang Learn Cards
Check out this page if you are looking for Lang Learn Cards
![]() |
No items matching your keywords were found.

n00b question about Fedora-9 for the PPC, and OpenJDK?
Hi, I installed Fedora 9 on my G3 iMac last year, and, since they didn't include the drivers for the iMac's specific video card, I have nothing but a terminal.
That's ok, though. No time like the present to learn ViM !
Anyway, I'm learning Java, when I run across what looks like a bug in the java.lang.Math class. No matter WHAT i do, the lines
double k = Math.sqrt( 49.0 );
System.out.println( k );
will not output the correct value (7.0). It gives me an apparently random string of numbers with an exponent of -300-something.
Now, when i run my class in another operating system on the same computer, it gives me the correct output. What gives? was a bug compiled into the OpenJDK for Fedora-9-PPC?
(The alleged Java version is 1.6.something.)
It sounds like it could be a difference in the floating point implementation. You'd need to really dig deep to find out for sure.
