Floating point exception when using Doubles #5

Gabriel439 opened this Issue Oct 2, 2012 · 4 comments

4 participants


I get a Floating point exception panic whenever I pass a Double as a parameter to format:

Prelude> import Data.Text.Format as T -- This wires in text-format-
Prelude T> format "{}" (Only (1.0 :: Double))
"Floating point exception

This causes the ghci session or program to crash unrecoverably.

This also occurs even if the parameter is never used, such as in:

Prelude T> format "" (Only (1.0 :: Double))
"Floating point exception

This also occurs for Float

@singpolyma singpolyma referenced this issue in bos/double-conversion Oct 13, 2012

Floating point exception #3


I'm having this as well, on 32-bit Fedora.


Fixed in double-conversion, thanks.

@bos bos closed this Dec 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment