ECMA-334 C# Language Specification

14.9.2: Floating-point comparison operators

The predefined floating-point comparison operators are:
bool operator ==(float x, float y);  
bool operator ==(double x, double y);  
bool operator !=(float x, float y);  
bool operator !=(double x, double y);  
bool operator <(float x, float y);  
bool operator <(double x, double y);  
bool operator >(float x, float y);  
bool operator >(double x, double y);  
bool operator <=(float x, float y);  
bool operator <=(double x, double y);  
bool operator >=(float x, float y);  
bool operator >=(double x, double y);  

The operators compare the operands according to the rules of the IEEE 754 standard: