data-binary-ieee754-0.4.4: Parser/Serialiser for IEEE-754 floating-point values

Copyright | 2010 John Millikin
License | MIT
Maintainer | jmillikin@gmail.com
Portability | portable
Safe Haskell | None
Language | Haskell98

Data.Binary.IEEE754

Contents

- Parsing
- Serializing
- Float - Word conversion

Description

Synopsis

- getFloat16be :: Get Float
- getFloat16le :: Get Float
- getFloat32be :: Get Float
- getFloat32le :: Get Float
- getFloat64be :: Get Double
- getFloat64le :: Get Double
- putFloat32be :: Float -> Put
- putFloat32le :: Float -> Put
- putFloat64be :: Double -> Put
- putFloat64le :: Double -> Put
- floatToWord :: Float -> Word32
- wordToFloat :: Word32 -> Float
- doubleToWord :: Double -> Word64
- wordToDouble :: Word64 -> Double

# Parsing

getFloat16be :: Get Float Source #

getFloat16le :: Get Float Source #

getFloat32be :: Get Float Source #

getFloat32le :: Get Float Source #

getFloat64be :: Get Double Source #

getFloat64le :: Get Double Source #

# Serializing

putFloat32be :: Float -> Put Source #

putFloat32le :: Float -> Put Source #

putFloat64be :: Double -> Put Source #

putFloat64le :: Double -> Put Source #

# Float - Word conversion

floatToWord :: Float -> Word32 Source #

wordToFloat :: Word32 -> Float Source #

doubleToWord :: Double -> Word64 Source #

wordToDouble :: Word64 -> Double Source #