Dump special floating point operators

Phil Deets pjdeets2 at gmail.com
Fri Dec 4 13:25:24 PST 2009


On Fri, 04 Dec 2009 11:06:31 -0500, Don <nospam at 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)?


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the Digitalmars-d mailing list