This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/14173] New: ynl() returns wrong value for LDBL_MIN


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]