Quote:
Originally Posted by Mark McLeod
The Pot will never exactly equal 5.
|
@OP: Mark's statement applies not only to your particular issue: It applies whenever you are comparing floating-point numbers in a computer program.
Here are a couple of articles which may be of interest:
http://randomascii.wordpress.com/201...-2012-edition/
http://c-faq.com/fp/fpequal.html