We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Is it possible to extract the bytes from a float type for storage in serial EE or flash memory?
I don't understand. Floats are 4 bytes. If you know their order on write to a serial EEROM then you can read them back in the reverse order to reconstruct the float. Is this what you meant? - Mark
Of course it is. One of the ways is unions: http://www.keil.com/forum/docs/thread1106.asp The other way is pointers:
float f = 1.234; char c; c = ((char*)&f)[2];