title: How to judge if a double number ends with .0 in Java
body: <p>I 've got some double numbers like :<code>3.0</code> <code>3.1</code> <code>4.0</code> <code>5.2</code>,etc. </p>
  
  <p>Can I Judge if the number ends with <code>.0</code> like <code>3.0</code> and <code>4.0</code>?</p>
  
  <p>Is there a best way to do so ?</p>
  
  <p>PS:I  converted them to String type,however I don't think it's the best way.</p>
  
  <pre><code>    double i = 3.0;
      String d = i + "";
      return d.endsWith(".0");
  </code></pre>