Im trying to convert a float (say, pi) to an unsigned char array.
I was trying something like this:
float x; unsigned char *c = (unsigned char *)&x; x = 1.2345; //do something with c...
But it doesnt work - I get garbage out, and I remember that I might need to include a .a file or two, and I cant remember where to find them (if thats the case) I think I need to add them as a linker?
Could someone shed some light on this for me?