title: How do I check whether a double's decimal part contains a specific number?
body: <p>Is it possible in Java to get the value of a double after the decimal point?</p>
  
  <p>I want my code to produce an error message if the decimal part is 6 (like <code>double number = 1.6</code>, or 2.6, or 98.6). If it is not 6, I just want to print "correct".</p>
  
  <p>How do I retrieve the decimal part of the double?</p>