Floating point Endianness?
Posted
by cake
on Stack Overflow
See other posts from Stack Overflow
or by cake
Published on 2010-05-31T17:50:03Z
Indexed on
2010/05/31
17:53 UTC
Read the original article
Hit count: 213
Hi
I'm writing a client and a server for a realtime offshore simulator, and, as I have to send a lot of data through a socket, I'm using binary data to maximize the ammount of data I can send. I already know about integers endianness, and how to use htonl and ntohl to circumvent endianness issues, but my application, as almost all simulation software, deals with a lot of floats.
My question is: Is there some issue of endianness whean dealing with binary formats of floating point numbers? I know that all the machines where my code will run use IEEE implementation of floating points, but is there some endianness issue when dealing with floats?
Since I only have access to machines with the same endian, I cannot test this by myself. So, I'll be glad if someone can help me with this.
Thanks in advance.
© Stack Overflow or respective owner