[GHC] #11183: Numeric.showFFloat outputs decimal point when it should not.

#11183: Numeric.showFFloat outputs decimal point when it should not. -------------------------------------+------------------------------------- Reporter: Dobiasd | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: | Version: 7.10.2 libraries/base | Keywords: Numeric, | Operating System: Unknown/Multiple showFFloat, showFFloatAlt | Architecture: | Type of failure: Incorrect result Unknown/Multiple | at runtime Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- {{{#!hs showFFloat Nothing 42 "" }}} The expression above should give "42" but actually gives "42.0". Only showFFloatAlt should do this. Minimal example: http://ideone.com/yYvqrf -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11183 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11183: Numeric.showFFloat outputs decimal point when it should not. -------------------------------------+------------------------------------- Reporter: Dobiasd | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: libraries/base | Version: 7.10.2 Resolution: invalid | Keywords: Numeric, | showFFloat, showFFloatAlt Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Dobiasd): * status: new => closed * resolution: => invalid -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11183#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11183: Numeric.showFFloat outputs decimal point when it should not. -------------------------------------+------------------------------------- Reporter: Dobiasd | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: libraries/base | Version: 7.10.2 Resolution: invalid | Keywords: Numeric, | showFFloat, showFFloatAlt Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by thomie): Some discussion here: https://www.reddit.com/r/haskell/comments/3w1rjd/numericshowffloat_vs_numeri... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11183#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC