View Single Post
  #3   Spotlight this post!  
Unread 22-12-2014, 14:08
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Need some help with

Quote:
Originally Posted by Mark McLeod View Post
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



Reply With Quote