471,585 Members | 1,165 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,585 software developers and data experts.

float: IEEE, big endian, little endian

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

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?


Jul 22 '05 #1
0 2205

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by franzkowiak | last post: by
2 posts views Thread by Goran | last post: by
54 posts views Thread by Andy | last post: by
5 posts views Thread by Peter Hansen | last post: by
10 posts views Thread by Chris Stankevitz | last post: by
7 posts views Thread by Gary Baydo | last post: by
29 posts views Thread by candy_init | last post: by
5 posts views Thread by julvr | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.