title: Floating Point to Binary Value(C++)
body: <p>I want to take a floating point number in C++, like 2.25125, and a int array filled with the binary value that is used to store the float in memory (IEEE 754).</p>
  
  <p>So I could take a number, and end up with a int num[16] array with the binary value of the float:
  num[0] would be 1
  num[1] would be 1
  num[2] would be 0
  num[3] would be 1
  and so on...</p>
  
  <p>Putting an int into an array isn't difficult, just the process of getting the binary value of a float is where I'm stuck. Can you just read the binary in the memory that the float variable? If not, how could I go about doing this in C++?</p>
  
  <p>EDIT: The reason for doing the comparison this way is that I am wanting to learn to do bitwise operations in C++.</p>