On 3/27/07, peter green wrote: > > > Even that approach depends on the endianess of your hardware. To do > > it truly portably, you have to assign the float value to an integer > > variable that's at least as large (e.g., long or long long), and then > > do the explicit shifting and masking to get at the individual bytes. > > In the network world, this is known as "serializing" or "marshalling" > > the data. > and even that is not nessacerally portable because the endian differences between your platforms may not be the same for integers as they are for floats. The whole point of marshalling is to avoid such problems... Orin. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist