[android-developers] Arithmetic error (BUG)
When Performing a division or multiplication. The value does not equal
to the arithmetic.
example i have:
double value = 100 * .0254;
in real life equals = 2.5908
While android calculates it to: 2.5907999999999998 which is wrong.
I have verified this in the emulator using multiple machines, and
multiple version of android.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home