Connecting Tech Pros Worldwide Forums | Help | Site Map

float: IEEE, big endian, little endian

Ernst Murnleitner
Guest
 
Posts: n/a
#1: Jul 22 '05
Dear readers,

Maybe someone can help:

I need to exchange data with a PLC. My computer (Linux on intel) uses the
intel format (little endian), the other device uses the motorola format (big
endian).

So I have to change the order of the bytes for "int". But for "float":

A) I do not know, if the order has also to be changed for float.

B) As the float datatype can have any format, is there a function in the
library to ensure, that I can get a 32bit IEEE floating point number?

Greetings
Ernst







Closed Thread