
#16036: expDouble## 0.0## doesn't get complied into 1.0## -------------------------------------+------------------------------------- Reporter: Fuuzetsu | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by carter): For exp 0, on float or double, I believe the answe is always 1. Exactly. Note that this is ignoring negative zero. I believe that exp of negative infinity should always be positive zero. But I’ll need to think about it However, i believe that for any other constants the exact answer may depend on the rounding mode at the time of execution. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16036#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler