I am reading a binary data format using Chicken, and so far I've gotten ints working by doing stuff like (fx+ (fxshl (read-byte) 8) (read-byte))
(Big Endian).
How can I read and write floats in? I have to be able to read and write IEEE 754-2008 32-bit and 64-bit binary floats.
I haven't found any good libraries to do this so far, but I've hacked together something that works. Note that I only have
read-byte
andread-string
available to me as input operations.