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/17031] New: [powerpc] nearbyintl() returns incorrect result for few inputs


https://sourceware.org/bugzilla/show_bug.cgi?id=17031

            Bug ID: 17031
           Summary: [powerpc] nearbyintl() returns incorrect result for
                    few inputs
           Product: glibc
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: raji at linux dot vnet.ibm.com

#include <stdio.h>
#include <math.h>
int
main()
{
  printf("%Lf\n",nearbyintl(4503599627370494.5000000000001L));
  printf("%Lf\n",nearbyintl(-4503599627370494.5000000000001L));
  exit (0);
}

Output:
4503599627370494.000000
-4503599627370494.000000

Expected Output:
4503599627370495.000000
-4503599627370495.000000

-- 
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]