On Fri, 04 Dec 2009 21:15:39 -0500, Don <nos...@nospam.com> wrote:
Phil Deets wrote:
On Fri, 04 Dec 2009 11:06:31 -0500, Don <nos...@nospam.com> wrote:
Here's a table of equivalences.
a!<>=b (a!=a) || (b!=b)
a<>b (a==a) && (b==b) && (a!=b)
a!<>b (a!=a) || (b!=b) || (a!=b)
a<>=b (a==a) && (b==b)
a!<=b !(a<=b)
a!<b !(a<b)
a!>=b !(a>=b)
a!>b !(a>b)
a!>=b !(a>=b)
Obviously if a or b is known at compile time, or if it is known not to
be NaN, many of the <> clauses can be dropped.
Isn't a!<>b equivalent to (a!=a) || (b!=b) || (a==b)?
Yes.
After reading this whole thread.. yes please dump this :)
-Steve