Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Floating point exception when using Doubles #5

Closed
Gabriel439 opened this Issue · 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
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
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.