Rich, I downloaded IBM Java2 1.3.1 JRE & SDK from the IBM Developer Works website. It corrected the problem. The java program is now returning a positive float.
Thanks for your assistance, Robert Hodge -----Original Message----- From: Jim Rich [mailto:[EMAIL PROTECTED]] Sent: Monday, September 16, 2002 12:44 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Something Funny with Java Your program produces the proper results on SuSE SLES7 with the SuSE RPM updates applied. I'm sure it would also work on SuSE SLES1 (formerly 7.0) with its SuSE RPM updates applied, but most of our customers have already made the switch to SLES7, so we bring it up only for support issue now.. We found the RPM updates crucial to running java applications on all SuSE and Red Hat releases, and we tell our customers they are required to run our products. And, of course, get the latest IBM SDK 1.3.1 release from: http://www6.software.ibm.com/dl/dklx130/dklx130-p (if you want to run Weblogic products, be sure to go to the bottom of the final download page and select this version: "zSeries Developer Kit for LINUX, SDK1.3.1 APAR PQ63617") zSeries Developer Kit for LINUX, SDK1.3.1 APAR PQ63617 Also, check out IBM's list of supported distributions and releases for java: http://www-106.ibm.com/developerworks/java/jdk/linux/tested.html We are awaiting IBM's certification of Red Hat in this table before we can certify our products on Red Hat. We have not tested other distributions, before anyone asks. Hope this helps, Jim Rich [EMAIL PROTECTED] ----- Original Message ----- From: Hodge, Robert L To: [EMAIL PROTECTED] Sent: Friday, September 13, 2002 5:26 PM Subject: Something Funny with Java Hello, There seems to be something funny with the IBM Java 1.3.0 on Linux-390. The following code results in a negative float on Linux-390, but on other platforms it is a positive float. public class testread { public static void main(String[] args) { float d = Float.parseFloat("1.891910E-05"); System.out.println("d="+d); System.exit(-1); } } The Linux distribution is SuSE 7.0, running on z/VM 3.1.0. The processor is a IBM 9672 G4. Any ideas? Maybe related to software emulation perhaps. Robert Hodge Lockheed Martin Corporation
