Builtin Float Epsilon? (was: Re: Does python suck or I am just stupid? )

Jonathan McLin jmclin at cox.net
Sat Feb 22 22:53:33 EST 2003


another dynamic language I've used provides the '~=' operator precisely for
this purpose (pun intended).

So with real numbers, you use 'if u~=v:'

PEP?  'a ~= b' operator equivalent to 'a-epsilon <= b <= a+epsilon'








More information about the Python-list mailing list