Floating point exception when using Doubles #5

Closed
Gabriel439 opened this Issue Oct 2, 2012 · 4 comments

4 participants

@Gabriel439

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-0.3.0.8
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
@singpolyma

This also occurs for Float

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

Floating point exception #3

@dag

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

@bos
Owner

Fixed in double-conversion 0.2.0.6, 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