title: cast variable to int vs round() function
body: <p>I have seen it in several places where <code>(int)someValue</code> has been inaccurate and instead the problem called for the <code>round()</code> function. What is the difference between the two?</p>
  
  <p>Specifically, if need be, for C99 C. I have also seen the same issue in my programs when writing them in java.</p>