Dump special floating point operators

Don nospam at nospam.com
Fri Dec 4 18:15:39 PST 2009


Phil Deets wrote:
> 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)?

Yes.



More information about the Digitalmars-d mailing list