title: floating point representation in memory is just not clear for me
body: <p>My task was to <strong>get the fraction of a float then store it in an int.</strong>
  It seemed very easy. I did this test:</p>
  
  <pre><code>float f = 3.1415f;
  printf("int pres. of float: %d\n"
         "int:                %d", *((int *)&amp;f), 31415);
  </code></pre>
  
  <p>output:</p>
  
  <p><code>int pres. of float: 1078529622</code></p>
  
  <p><code>int: 31415</code></p>
  
  <p>I changed them to base 2 to see where the 31415 is present. </p>
  
  <pre><code>0100 0000 0100 1001 0000 1110 0101 0110 - 3.1415
                      0111 1010 1011 0111 - 31415
  </code></pre>
  
  <p>I don't know what to do. How could I get the fraction as a simple integer? </p>