title: How do I turn a binary string into a float or double?
body: <p>In this question, Bill The Lizard asks <a href="https://stackoverflow.com/q/397692/50151">how to display the binary representation of a float or double</a>.</p>
  
  <p>What I'd like to know is, given a binary string of the appropriate length, how could I perform the reverse operation (in  C#)? In other words, how do I turn a binary string into a float or double?</p>
  
  <p>As a side note, are there any bit strings which would not result in a valid float or double?</p>
  
  <hr>
  
  <p>EDIT: By binary string I mean a string of 0s and 1s.</p>
  
  <p>So, my input will be a string like this:</p>
  
  <pre><code>01010101010101010101010101010101
  </code></pre>
  
  <p>and my output should be a floating point number. (Or, if there were 64 bits in the string, a double.)</p>