This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/14173] New: ynl() returns wrong value for LDBL_MIN
- From: "polacek at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Mon, 28 May 2012 00:03:59 +0000
- Subject: [Bug math/14173] New: ynl() returns wrong value for LDBL_MIN
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14173
Bug #: 14173
Summary: ynl() returns wrong value for LDBL_MIN
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: unassigned@sourceware.org
ReportedBy: polacek@redhat.com
Classification: Unclassified
ynl (5, LDBL_MIN) should, like yn (5, DBL_MIN) and ynf (5, FLT_MIN), return
-Inf, rather than NaN:
#include <float.h>
#include <math.h>
#include <stdio.h>
int
main (void)
{
float f = ynf (10, FLT_MIN);
printf ("%f\n", f);
double d = yn (10, DBL_MIN);
printf ("%f\n", d);
long double ld = ynl (10, LDBL_MIN);
printf ("%Lf\n", ld);
return ! isfinite (ld);
}
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.