From owner-freebsd-java Fri Feb 14 17: 8:16 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FCFA37B401 for ; Fri, 14 Feb 2003 17:08:15 -0800 (PST) Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4B4843F3F for ; Fri, 14 Feb 2003 17:08:14 -0800 (PST) (envelope-from parv_fm@mailsent.net) Received: from sdn-ap-035dcwashp0433.dialsprint.net ([65.179.105.179] helo=moo.holy.cow) by scaup.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18jqoN-0006EX-00; Fri, 14 Feb 2003 17:08:13 -0800 Received: by moo.holy.cow (Postfix, from userid 1001) id 74047B04B; Fri, 14 Feb 2003 20:10:04 -0500 (EST) Date: Fri, 14 Feb 2003 20:10:04 -0500 From: parv To: Huang wen hui Cc: java@freebsd.org Subject: Re: Math.pow bug for jdk1.3.1-p8 ? Message-ID: <20030215011004.GB65944@moo.holy.cow> Mail-Followup-To: Huang wen hui , java@freebsd.org References: <3E4C9DDD.4040204@gddsn.org.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E4C9DDD.4040204@gddsn.org.cn> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org in message <3E4C9DDD.4040204@gddsn.org.cn>, wrote Huang wen hui thusly... > > I build jdk1.3.1-p8 for 4.7-STABLE(today), Math.pow return wrong value > if using the following example: > > public class TestPow { > public static void main(String[] args) { > int exp =9; > int i = (int)Math.pow(2.0,(double)exp); > System.out.println("i="+i); > } > } > > ----------output------------ > %java TestPow > i=0 I tried it w/ jdk-1.3.1-p8 on 4.7-Release-p3; same result. But then Alexander said something about the gcc 3.2.1 bug, which i do have installed. I will try w/ gcc 3.2.2. - Parv -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message