title: Casting a double as an int, does it round or just strip digits?
body: <p>Doing some calculations with doubles which then need to be cast to an int. So i have a quick question, when casting a double say 7.5 to an int, it will return 7.</p>
  
  <p>Is this a product of rounding or just striping anything after the decimal point?</p>
  
  <p>If it is a product of rounding, is it smart ie 0.1 to 0.5 it rounds down and 0.6 to 0.9 it rounds up?</p>
  
  <p>Cheers</p>