title: Error:(415, 32) return (Float)Math.sqrt (x * x + y * y);
body: <p>I use for determine the space between the first two fingers Android SDK 23 marshmallow</p>
  
  <pre><code>     private float spacing(WrapMotionEvent event) {
           // ...
           float x = event.getX(0) - event.getX(1);
          float y = event.getY(0) - event.getY(1);
          return (Float)Math.sqrt (x * x + y * y);
      }
  </code></pre>
  
  <p>warning message</p>
  
  <blockquote>
    <p>Error:(415, 32) error: incompatible types: double cannot be converted to Float</p>
  </blockquote>