I whona share my function that i have write in C , for Binary representation of float number in memory.
Code:
void float_to_bin(float f){
long unsigned x;
int i=0;
unsigned int mmask;
x = *(long*)&f;
mask = 1<<(sizeof(x) * 8 - 1);
while (mask > 0)
{
if(i==1) printf (" ");
if(i==7) printf (" ");
i++;
if (x & mask)
printf("1");
else
printf("0");
mask >>= 1;
}
}
Example: I you pass number 3,14. You will get on screen: 0 100000 0010010001111010111000011

