I am trying to transfer double-width floating point numbers between two computers, whose floating point format is different. Does anyone know of any packages/libraries that will convert floats/doubles into something that is not platform or architecture specific so that I can send the values.
Strings are not practical, as I am working over a 300 baud connection, and to serialise the data as a string requires more space than the 8 bytes required to send the type whole.
I have looked into XDR, but does not seem to be what I want. I expected it to do nothing more than do a bit of creative bit-twiddling on doubles/floats, not try and hijack my stream interface!
Regards, Freddie.