Search found 2 matches

Return

by Kisen
Tue Feb 04, 2020 9:46 am
Jump to forum
Jump to topic

Re: FLOAT to INT and back again.

The outputs from those calculations are all outputting as expected.
I already convert these to strings and output them on the UART to verify them.
by Kisen
Sun Feb 09, 2020 10:33 am
Jump to forum
Jump to topic

Re: FLOAT to INT and back again.

Change your union to: typedef union { float AsFloat; MX_UINT8 AsByte[4]; } MX_FloatUnion; MX_FloatUnion FloatUnion; Assign the value to AsFloat and get the bytes from the 4 AsByte vast like your earlier example. Hi, Thanks for this. It works perfectly now. Whats the difference between the 'MX_FLOAT...