[Haskell-cafe] 16 bit floating point data in Haskell?
rmm-haskell at z.odi.ac
Sun Sep 27 15:47:35 EDT 2009
What about the built-in Float type?
Prelude Foreign.Storable> sizeOf (undefined :: Float)
Prelude Foreign.Storable> sizeOf (undefined :: Double)
Or maybe you mean something that can be used with FFI calls to C, in
which case Foreign.C.Types (CFloat).
Both instance the Floating, RealFloat, RealFrac, etc, classes so
should operate largely the same as (modulo precision) a Double.
On Sep 27, 2009, at 2:42 PM, Olex P wrote:
> Hi guys,
> Do we have anything like half precision floats in Haskell? Maybe in
> some non standard libraries? Or I have to use FFI + OpenEXR library
> to achieve this?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe