title: How to extract the IEEE 754 float representation in JAVA
body: <p>I'm getting the IEEE754 formatted float value in two integer variables. The integers are 13107 &amp; 17184. The integers are needed to be swapped. Now, how can i extract the float value from these two integers ?. The float value for these integers will be equals to 160.19 (approx.). My code provides a result of 1.1 only .. </p>
  
  <pre><code>              int buffer = 0;
                int float_value = 0;
                float result = 0;
                float value = 0, mantissa = 0;
  
                if (swap == FALSE) {
                          float_value = rec_buf;
                          float_value = float_value &lt;&lt; 16;
                          buffer = rec_buf1;
                          float_value = (float_value | buffer);
                  }else{
                          buffer = rec_buf1;
                          float_value = rec_buf;
                          float_value = float_value &lt;&lt; 16;
                          float_value = (float_value | buffer);
                  }
  
  
  
                  String a = Integer.toBinaryString((int)float_value);
                  value = Float.valueOf(a);
  </code></pre>
  
  <p>anyone help me out with this issue</p>