
10 Nov
2009
10 Nov
'09
10:02 a.m.
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