bug-glibc
[Top][All Lists]
Advanced

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

powl & nanl problem


From: Zoonky Lee
Subject: powl & nanl problem
Date: Mon, 15 Sep 2003 00:46:22 +0200

Hello,

The following code compiled with gcc v3.2.3 & glibc v2.3.2 under Slackware
9.0 produces incorrect results:
#include <math.h>
#include <stdio.h>

int main(){
 printf("(3.43646e+4928)^(3.43646e+4928) = %Lg\n", powl(3.43646e+4928l,
3.43646e+4928l));
 printf("nanl(0) = %Lg\n", nanl(0));

 return 0;
}

The output is:
(3.43646e+4928)^(3.43646e+4928) = nan
Segmentation fault

Thank you,
Zoonky





reply via email to

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