title: How does float variable store negative values which are not in their range?
body: <p>The range of <code>float</code> values is 3.4e-38 to 3.4e+38. So the float variables should not store negative values. But float variables are storing negative values. Please explain it to me.</p>
  
  <pre><code>#include&lt;iostream.h&gt;
  void main()
  { float ab=-3.456;
  cout&lt;&lt;ab; }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>-3.456
  </code></pre>