License | BSD-style |
---|---|
Maintainer | capsjac <capsjac at gmail dot com> |
Stability | Experimental |
Portability | GHC only |
Safe Haskell | None |
Language | Haskell2010 |
IEEE-754 parsing, lifted from the cereal package by Christian Marie pingu@ponies.io
Implementation is described here: http://stackoverflow.com/questions/6976684/converting-ieee-754-floating-point-in-haskell-word32-64-to-and-from-haskell-float/7002812#7002812
Documentation
wordToDouble :: Word64 -> Double Source
wordToFloat :: Word32 -> Float Source
doubleToWord :: Double -> Word64 Source
floatToWord :: Float -> Word32 Source