[Haskell-beginners] Double Trouble

Philip Scott haskell-beginners at foo.me.uk
Tue Nov 10 05:02:03 EST 2009

Hi ho,
> Perhaps this module will help:
> http://hackage.haskell.org/package/data-binary-ieee754
>> I need to interface my Haskell program with an existing C++ one over a TCP
>> socket. I need to feed the C++ program doubles in standard 64-bit network
>> order IEEE 765-1985 format, but if I serialize a double using Data.Binary I
>> get something which
>> has altogeather too many bytes (I read somewhere it is an int and a long for
>> the exponent and mantissa).

Thank you very much; I will take a look at that! I have no idea how I 
missed it, I went through every package on hackage that had 'binary' in 
the name, I must have sailed right past :)

- Philip

More information about the Beginners mailing list