title: 32 bit hex string to floating point number in java
body: <p>I have the following string "<code>0x4B196DAF</code>". I want to get output like "<code>10055087.000000</code>".</p>
  
  <p>My piece of code is showing a strange output like "<code>1.0055087E7</code>"</p>
  
  <pre><code>long l = Long.parseLong(hexval, 16);
  return Float.intBitsToFloat(l.intValue()); 
  </code></pre>
  
  <p>I have also tried with </p>
  
  <pre><code>long l = Long.parseLong(hexval, 16);
  return Double.longBitsToDouble(l.longValue());
  </code></pre>
  
  <p>But nothing helpful. I have check few website which showing the correct output. I can't find out the problem exactly.</p>