Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to solve decimal subtraction error?

807569Jun 3 2006 — edited Jun 3 2006
i heard that 2.0 - 1.1 gives 0.8999999999999999, instead of 0.9 how to solve this can anybody give solution with an example that solves this subtraction
Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 1 2006
Added on Jun 3 2006
5 comments
312 views