NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/50937: incorrect printf result for subnormal long double values
>Number: 50937
>Category: lib
>Synopsis: incorrect printf result for subnormal long double values
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 11 03:10:00 +0000 2016
>Originator: Tolstokulakov Nikolay
>Release: 7.0
>Organization:
nsu.ru
>Environment:
NetBSD netbsd.home 7.0 NetBSD 7.0 (GENERIC.201509250726Z) amd64
>Description:
Unexpected and wrong result when print subnormal long double value
SO question & answer http://stackoverflow.com/questions/35090322/netbsd-long-double-trouble
>How-To-Repeat:
#include <stdio.h>
int main()
{
long double rd = 3.3621e-4932L;
printf("%Le\n", rd);
// NetBSD prints 1.681050e-4932
return 0;
}
>Fix:
Home |
Main Index |
Thread Index |
Old Index