100 * .254 is definitely 2.54, not 2.59 As for the ...799999, that's floating point rounding. Look it up.
-- Kostya Vasilyev -- http://kmansoft.wordpress.com 04.09.2010 2:00 пользователь "Churky" <[email protected]> написал: 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 [email protected] To unsubscribe from this group, send email to [email protected]<android-developers%[email protected]> For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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

