From owner-freebsd-java Thu Feb 13 23:42:27 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 2FF6D37B401 for ; Thu, 13 Feb 2003 23:42:26 -0800 (PST) Received: from gddsn.org.cn (mail.gddsn.org.cn [210.21.6.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 823D343F75 for ; Thu, 13 Feb 2003 23:42:25 -0800 (PST) (envelope-from hwh@gddsn.org.cn) Received: from gddsn.org.cn (gw [210.21.6.34]) by gddsn.org.cn (Postfix) with ESMTP id 0D29838CD58 for ; Fri, 14 Feb 2003 15:42:22 +0800 (CST) Message-ID: <3E4C9DDD.4040204@gddsn.org.cn> Date: Fri, 14 Feb 2003 15:42:21 +0800 From: Huang wen hui User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; zh-CN; rv:1.2.1) Gecko/20030213 X-Accept-Language: zh-cn, zh-tw, en-us, en MIME-Version: 1.0 To: java@freebsd.org Subject: Math.pow bug for jdk1.3.1-p8 ? Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit 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 hi, 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 jdk1.4.1-p2 and jdk1.3.1-p7 do not have this problem. --hwh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message