BabyTiger
Full Member level 2
I need to get each byte of 32-bit floating point variable by using C programming
Ex. Variable Z is the floating point has 4 byts (BYTE0:BYTE1:BYTE2:BYTE3)
I need to put
BYTE0 into A where A is unsigned char
BYTE1 into B where B is unsigned char
BYTE2 into C where C is unsigned char
BYTE3 into D where D is unsigned char
Please help me, I need to write in C programming.
Best Regards
Ex. Variable Z is the floating point has 4 byts (BYTE0:BYTE1:BYTE2:BYTE3)
I need to put
BYTE0 into A where A is unsigned char
BYTE1 into B where B is unsigned char
BYTE2 into C where C is unsigned char
BYTE3 into D where D is unsigned char
Please help me, I need to write in C programming.
Best Regards