Edit: It's helpful if you don't cross-post and/or if you do, link the two threads together so people don't waste time answering questions that have already been answered.
Quote: "AFAIK bit manipulations are limited to integers"
For some reason, the bit routines did compile on a long data type.
I have not yet checked if the logic worked correctly.
I was expecting, since the data type float was not in the standard
IEEE 754 format used by most computers, that I could bit read the 32 bits, convert them to 4 bytes for data transmission. Having to transfer chars in a non fixed format throws a monkey wrench in my packet transmission to another Arduino.
was expecting, since the data type float was not in the standard
IEEE 754 format used by most computers, that I could bit read the 32 bits, convert them to 4 bytes for data transmission. Having to transfer chars in a non fixed format throws a monkey wrench in my packet transmission to another Arduino.
The "float" type on the Arduino is IEEE-754.
I don't know why you would have wanted to do bit-manipulation on the "float" type anyway - just cast a char pointer to the address of your float and read out the bytes that way. To do it bit-by-bit is just going to be slow.