Date: Sat, 15 Feb 2003 20:03:18 +1300 From: Jonathan Chen <jonc@chen.org.nz> To: Huang wen hui <hwh@gddsn.org.cn> Cc: Greg Lewis <glewis@eyesbeyond.com>, java@FreeBSD.ORG Subject: Re: Math.pow bug for jdk1.3.1-p8 ? Message-ID: <20030215070318.GA655@grimoire.chen.org.nz> In-Reply-To: <3E4D8F19.4050204@gddsn.org.cn> References: <3E4C9DDD.4040204@gddsn.org.cn> <20030215092059.A8186@misty.eyesbeyond.com> <3E4D8F19.4050204@gddsn.org.cn>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 15, 2003 at 08:51:37AM +0800, Huang wen hui wrote: [...] > >>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 can confirm the problem on my machine as well: % uname -a FreeBSD grimoire.chen.org.nz 4.7-STABLE FreeBSD 4.7-STABLE #0: Sat Feb 15 15:42:09 NZDT 2003 root@grimoire.chen.org.nz:/usr/obj/usr/src/sys/GRIMOIRE i386 % java -version java version "1.3.1-p8" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-p8-root-030214-07:23) Classic VM (build 1.3.1-p8-root-030214-07:23, green threads, nojit) % java TestPow i = 0 Java was built using base-system's cc. -- Jonathan Chen <jonc@chen.org.nz> ---------------------------------------------------------------------- Power corrupts, Absolute Power is pretty neat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030215070318.GA655>