Create a simple project for 56F801 in CW 8.0 and find a strange problem when converting float point to bytes. Define a union
typedef union _FloatType
then define and set
f.f = 2.3f;
In debuger window, find b = 0x3333, b = 0x4013, b = 0; b = 0
Apparently b does not point to bytes. What's the problem here?
Thanks a lot.