title: Error: incompatible types: possible lossy conversion from double to float
body: <p>I've been running this code and keep receiving errors, not sure why. Double to float?
  Keep receiving message &quot;error: incompatible types: possible lossy conversion from double to float .&quot; Is there any issue with conversions how to the conversion so there is no error
  This is part of a larger code.</p>
  <pre><code>  public static float getAreaOfPentagon(float l) {
    float area = Math.sqrt(5 * (5 + 2 * (Math.sqrt(5))) * l * l) / 4;
    return area;
  }
  </code></pre>