I guess it all comes down to how precise you want equality test to be in this program. If you want exact on the money the only way to get that I have ever seen is to do a direct string comparison as mentioned above. In this case 10.0 != 10.00. The reply to this suggestion before was that (10.0 == 10.00) evaluated to true. So it comes down to the basic question that has been asked throughout this post
"How Precise do you want the numeric comparison to be?"