NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/45372: A bug in pow(3)

>Number:         45372
>Category:       lib
>Synopsis:       A bug in pow(3)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 17 06:55:00 +0000 2011
>Originator:     Jukka Ruohonen
>Release:        NetBSD 5.99.55/amd64

For pow(x, y), if x = -1 and y = +- Inf, 1.0 should be returned. But NetBSD
returns incorrectly NaN.


A simple test case reveals this.



Home | Main Index | Thread Index | Old Index