This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/17031] New: [powerpc] nearbyintl() returns incorrect result for few inputs
- From: "raji at linux dot vnet.ibm.com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 06 Jun 2014 08:47:34 +0000
- Subject: [Bug math/17031] New: [powerpc] nearbyintl() returns incorrect result for few inputs
- Auto-submitted: auto-generated
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.