Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2003 20:10:04 -0500
From:      parv <parv_fm@emailgroups.net>
To:        Huang wen hui <hwh@gddsn.org.cn>
Cc:        java@freebsd.org
Subject:   Re: Math.pow bug for jdk1.3.1-p8 ?
Message-ID:  <20030215011004.GB65944@moo.holy.cow>
In-Reply-To: <3E4C9DDD.4040204@gddsn.org.cn>
References:  <3E4C9DDD.4040204@gddsn.org.cn>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030215011004.GB65944>