[Bug math/17031] New: [powerpc] nearbyintl() returns incorrect result for few inputs
raji at linux dot vnet.ibm.com
sourceware-bugzilla@sourceware.org
Fri Jun 6 08:47:00 GMT 2014
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.
More information about the Glibc-bugs
mailing list