Dividing a 32bit floating number into (4) 8-bit integers for
Posted: Tue May 13, 2003 5:46 am
I have a few 32bit floating numbers which I want to use to send to an EEPROM for storage. Does anyone have an idea of how to break this 32bit floating number into 4 separate 8-bit integers???
The make8() function only works on integers and does work with floating point numbers.
Thanks
liche
___________________________
This message was ported from CCS's old forum
Original Post ID: 14400
Tomi Guest
Re: Dividing a 32bit floating number into (4) 8-bit integers
Posted: Tue May 13, 2003 6:37 am
See CCS FAQ "How do I write variables to EEPROM that are not a byte?" That example is about saving floats.
:=I have a few 32bit floating numbers which I want to use to send to an EEPROM for storage. Does anyone have an idea of how to break this 32bit floating number into 4 separate 8-bit integers???
:=
:=The make8() function only works on integers and does work with floating point numbers.
:=
:=Thanks
:=
:=liche
___________________________
This message was ported from CCS's old forum
Original Post ID: 14403
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
Re: Dividing a 32bit floating number into (4) 8-bit integers
Posted: Tue May 13, 2003 6:39 am
Here's the answer to your question:
<a href="http://www.ccsinfo.com/faq/?24" TARGET="_blank">http://www.ccsinfo.com/faq/?24</a>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum