> On Thu, May 15, 2003 at 08:12:33AM -0400, Mccauley, Daniel H wrote: > > > > union { > > float f; > > unsigned char c[4]; > > } SetWheel; > > > > Result1 = SetWheel.f * 343.123; > > > > And whenever I want to treat this variable as a 8-bit integer do: > > > > Write_eeprom (addr0, SetWheel.c[0]); > > That may work in your compiler, which is fine, but it's not *guaranteed* > to work by the C standard. ...and why would that be? Only because sizeof(float) may vary, which has been covered here earlier, or are there other reasons too? -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body