Dump special floating point operators

Steven Schveighoffer schveiguy at yahoo.com
Sat Dec 5 13:11:22 PST 2009


On Fri, 04 Dec 2009 21:15:39 -0500, Don <nospam at nospam.com> wrote:

> 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.

After reading this whole thread.. yes please dump this :)

-Steve



More information about the Digitalmars-d mailing list