
#9936: Data.Fixed truncates 5.17 to 5.16 -------------------------------------+------------------------------------- Reporter: singpolyma | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: libraries/base | Version: 7.6.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: #9231, #9240 | Differential Rev(s): Phab:D1693 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Yance): I tried my luck with this one as my first contribution, and I get the same result as the comment right above me. I tried changing the way read works on fixed size floats, but there are a couple of tests that enforce for example read "38.009" :: Centi == 38.00, while I would find 38.01 to be a more reasonable answer. I couldn't find anything about this in the Haskell 2010 report, so my question is: Would it be possible to change this specification? Would it be desirable? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9936#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler