title: How quickly check whether double fits in float? (Java)
body: <p>Are there some arithmetic or bitwise operations that can check
  whether a double fits into a float without loss
  of precision.</p>
  
  <p>It should not only check that the double range is
  in the float range, but also that no mantissa bits
  get lost.</p>
  
  <p>Bye</p>
  
  <p>P.S.: This answers the problem half way for C#:
  <a href="https://stackoverflow.com/questions/16857604/how-to-check-if-a-double-can-fit-into-a-float-without-conversion-to-infinity">How to check if a double can fit into a float without conversion to infinity</a>
  But I need a solution that works for Java.</p>