Java Number error
<p>i seen to be having a problem with the line:</p>

<pre><code>int xPos = ((x / maxX) * X_AXIS_LENGTH) + X_AXIS_OFFSET; =
</code></pre>

<p>for testing purposes i have assigned:</p>

<pre><code>int x = 10;
int maxX = 52;
</code></pre>

<p>but when used in this calculation <code>x / maxX</code> gives me <code>0</code> instead of <code>0.19</code>!</p>

<p><a href="http://s12.postimage.org/uawn8b6l9/image.png" rel="nofollow">http://s12.postimage.org/uawn8b6l9/image.png</a></p>
