title: Split number into an integer and decimal
body: <p>Input 23.893 would become INTEGER - 23, DECIMAL - 0.893 </p>
  
  <p>Here's the key snippet from my code</p>
  
  <pre><code>double realNumber = scan.nextDouble(); \\store the keyboard input in variable realNumber
  
  double integerPart = Math.floor(realNumber); \\round down eg. 23.893 --&gt; 23
  
  double fractionPart = realNumber - integerPart; \\find the remaining decimal
  </code></pre>
  
  <p>When I try this with long numbers the decimal part differs slightly from the actual.</p>
  
  <p>Input - 234.324112341234134 becomes INTEGER - 234.0, </p>
  
  <p>DECIMAL - 0.3241123412341267</p>