I wanted to get some opinions on how to go about serializing floats.
Some people i've talked to have said to just assume that everyone is using the IEEE754 standard and just memcpy to bytes, but I didn't know how safe this was to just assume that the byte layout is the same especially between different operating systems such as Linux->Windows.
I had read this post https://stackoverflow.com/questions/3418319/serialize-double-and-float-with-c
and I saw a lot of different suggestions on how to go about serializing floats.
Do you all have any suggestions on the best route to go about serializing floats? Also, while we are on the topic, I am wondering the same about serializing doubles.
Note: I realize I could just convert them to strings already, but i'm specifically asking for methods that are not just converting everything to strings and sending it over.