https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67547
Bug ID: 67547 Summary: may be an error in printf(%a..) for nexttowardf(0.f,1.f) Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: ka_bena at yahoo dot fr Target Milestone: --- include <stdio.h> include <math.h> int main(void) { printf(" %E\n", nexttowardf ( 0.F , 1.F ) ) ; printf(" %A\n", nexttowardf ( 0.F , 1.F ) ) ; printf(" %A\n", nexttoward ( 0. , 1. ) ) ; return 0 ; } /* Results 1.401298E-045 0X0P-149 0X1P-1023 Comment:: may be an error in printf("%A...) for this value ? Microsoft Windows XP Profesional version2002 Service Pack 3. Gcc 4.8.0 win32 mingw32 std =-C99 */