Ticket #7034 (closed bug: fixed)
reading a large double results in zero with ghc-7.4.2
| Reported by: | maeder | Owned by: | pcapriotti |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.6.1 |
| Component: | Compiler | Version: | 7.4.2 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | T7034 | Blocked By: | |
| Blocking: | Related Tickets: | #5692 |
Description
Prelude> read "1E100000000000000000000" :: Double Infinity Prelude> read "1E1000000000000000000000" :: Double 0.0
This was probably introduced by the fix for #5688. Note that #3897 is still open.
Prelude> 1E1000000000000000000000 :: Double
takes too long and sometimes results in 0.0 or in a memory crash
Change History
Note: See
TracTickets for help on using
tickets.
