This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Breaking a FLOAT in char

Hi,

I need to save a FLOAT value in a EEPROM. But for that I must break the float in 4 CHAR.

I dont want to mask and shift, I prefer something more fency.

Is there a way using the STRUCT and UNION to be able to access each BYTE in a FLOAT ?


I don't know the syntax.

Anyone could help ?

0