title: javascript float from/to bits
body: <p>I am trying to perform something that is brain-dead simple in any other language but not javascript: get the bits out of float (and the other way around).</p>
  
  <p>In C/C++ it would be something like</p>
  
  <pre>
  float a = 3.1415;
  int b = *((int*)&a);
  </pre>
  
  <p>and vise-versa</p>
  
  <pre>
  int a = 1000;
  float b = *((float*)&a);
  </pre>
  
  <p>In C# you can use the BitConverter
  ...floatBits or something alike in Java... Even in VB6 for Christ's sake you can memcpy a float32 into an int32. How on earth can I translate between and int and a float in javascript? </p>