title: Changing a String decimal (2.9) to Int or Long issues
body: <p>Okay, I'm fairly new to java but I'm learning quickly(hopefully). So anyway here is my problem:</p>
  
  <p>I have a string(For example we will use 2.9), I need to change this to either int or long or something similar that I can use to compare to another number.</p>
  
  <p>As far as I know int doesn't support decimals, I'm not sure if long does either? If not I need to know what does support decimals.</p>
  
  <p>This is the error: <code>java.lang.NumberFormatException: For input string: "2.9"</code> with both Interger.parseInt and Long.parseLong</p>
  
  <p>So any help would be appreciated!</p>