I have this simple program
#include int main(void) { unsigned int a = 0x120; float b = 1.2; printf(\"%X %X\\n\", b, a); return 0; }
If you want to see the bits of a stored float, use a union:
float b = 1.2; union { float f; int i; } u; u.f = b; printf ("%x\n", u.i);
results (32-bit x86):
3f99999a