Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Floating point exception when using Doubles #5

Closed
Gabriel439 opened this Issue · 4 comments

4 participants

Gabriel Gonzalez Stephen Paul Weber Dag Odenhall Bryan O'Sullivan
Gabriel Gonzalez

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
Stephen Paul Weber

This also occurs for Float

Stephen Paul Weber singpolyma referenced this issue in bos/double-conversion
Closed

Floating point exception #3

Dag Odenhall

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

Bryan O'Sullivan
Owner

Fixed in double-conversion 0.2.0.6, thanks.

Bryan O'Sullivan bos closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.