Thank you for your answers, Mr. Roman Guy.

I just don't want to waste any resources.
Handling integers always faster than handling floats.
That's why I care about using floats.

On 10월7일, 오후12시21분, Romain Guy <[email protected]> wrote:
> Floats allow for sub-pixel positioning of drawing primitives, which is
> important when you use animations and/or antialiasing. Today's mobile
> computing devices also have FPUs, which means it's not that expensive to use
> floats (the way they are being used at least.)
>
> Why do you care so much about using integers?
>
>
>
>
>
>
>
>
>
> On Thu, Oct 6, 2011 at 8:16 PM, byhesed <[email protected]> wrote:
> > I know Android primarily uses integers.
> > But, in the case of some functions such as drawText and measureText
> > are using float integers.
> > It doesn't make sense to me because using integers looks much better.
>
> > Do you really know the reasons?
> > Why do they use floats for the coordinate system?
>
> > Although I somewhat understand Mr. Jim's opinion,
> > Is it possible to deal those values with integers?
>
> > (Mr. Jim said: "because latitude and longitude (and other coordinate
> > systems) are not always integers...")
>
> > What do you thing about my opinion?
> > Anybody  has any ideas?
>
> > On 10월7일, 오전11시31분, Dianne Hackborn <[email protected]> wrote:
> > > Android primarily uses ints.
>
> > > On Thu, Oct 6, 2011 at 10:17 PM, byhesed <[email protected]> wrote:
> > > > Why does Android use float instead of integer as the coordinate
> > > > system?
>
> > > > Isn't it too slow if using float variables instead of integer
> > > > variables?
>
> > > > Anybody know why Android use float variables instead of integer
> > > > variables?
>
> > > > Thank you in advance.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > [email protected]
> > > > To unsubscribe from this group, send email to
> > > > [email protected]
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > [email protected]
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> [email protected]

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to