Why draw operation in android canvas are using float instead of int for (x,y)?
<p>Why draw operation in android canvas are using float instead of int for (x,y)?
For example:
<a href="http://developer.android.com/reference/android/graphics/Canvas.html#drawCircle(float" rel="nofollow">http://developer.android.com/reference/android/graphics/Canvas.html#drawCircle(float</a>, float, float, android.graphics.Paint)</p>

<p><a href="http://developer.android.com/reference/android/graphics/Canvas.html#drawRect(float" rel="nofollow">http://developer.android.com/reference/android/graphics/Canvas.html#drawRect(float</a>, float, float, float, android.graphics.Paint)</p>

<p>If I have a lot of objects (say 200) to draw in my application and i have a class for each object, should I use 'int' or 'float' for the x, y attribute (the location of the object when drawn on screen)?  i think 'float' use less memory than 'int'.</p>

<pre><code>class MyObject {
   public int x;
   public int y;
}
</code></pre>

<p>Thank you.</p>
