title: Float data type on Java not giving the right value
body: <p>I am having issues with the data type float as it is not giving the expected output.
  Can anyone help or point me to the right direction?
  See <a href="https://i.stack.imgur.com/dFjgz.png" rel="nofollow noreferrer">my screenshot</a> about the problem.</p>
  <p>As you can see, I'm trying to add 2 floats but the result is <code>24.599998</code> instead of just <code>24.6</code>. Any way to get just <code>24.6</code> without rounding? I have also tried removing the f and there is no luck</p>