bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: powl


From: Petter Reinholdtsen
Subject: Re: powl
Date: Wed, 21 Jul 2004 10:08:51 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (usg-unix-v)

[Zoonky Lee, 2003-08-30]
> Hello,
>
> The following code compiled with gcc v3.2.2 & glibc v2.3.1 return nan as
> output:
> #include <stdio.h>
> #include <math.h>
>
> int main(){
> long double value = 3.43646e+4928l;
> printf("(%Lg)^(%Lg) = %Lg\n", value, value, powl(value, value));
>
> return 0;
> }

I tested it in Debian/Unstable, and it returned this for me as well:

  (3.43646e+4928)^(3.43646e+4928) = nan

I do not know if this is correct behavior or not, but suggest you
report it to the glibc bugzilla, available from
<URL:http://sources.redhat.com/bugzilla/>.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]