title: How to convert a binary string to an integer or a float?
body: <p>I have binary strings in the form of either:</p>
  <pre><code>&lt;&lt;&quot;5.7778345&quot;&gt;&gt;
  </code></pre>
  <p>or</p>
  <pre><code>&lt;&lt;&quot;444555&quot;&gt;&gt;
  </code></pre>
  <p>I do not know before hand whether it will be a float or integer.</p>
  <p>I tried doing a check to see if it is an integer. This does not work since it is binary. I alos tried converting binary to list, then check if int or float. I did not have much success with that.</p>
  <p>It needs to be a function such as:</p>
  <pre><code>binToNumber(Bin) -&gt;
    %% Find if int or float
    Return.
  </code></pre>
  <p>Anyone have a good idea of how to do this?</p>