bug in signum function
IEE754 standard states, that every floating point operation involving a NaN should produce NaN. However, in GHC 7.0.3 (in the current Haskell platform) evaluating[[BR]]
signum (0.0/0.0)[[BR]]
produces -1
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.0.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Prelude |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |