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);Paragraph 21 The operators compare the operands according to the rules of the IEEE 754 standard:

- 2 If either operand is NaN, the result is false for all operators except !=, for which the result is true. 3 For any two operands, x != y always produces the same result as !(x == y). 4 However, when one or both operands are NaN, the <, >, <=, and >= operators do not produce the same results as the logical negation of the opposite operator. [Example: For example, if either of x and y is NaN, then x < y is false, but !(x >= y) is true. end example]
- 5 When neither operand is NaN, the operators compare the values of the two floating-point operands with respect to the ordering
{UNICODE_150}{UNICODE_8734} < {UNICODE_150}max < {UNICODE_133} < {UNICODE_150}min < {UNICODE_150}0.0 == +0.0 < +min < {UNICODE_133} < +max < +{UNICODE_8734}

where min and max are the smallest and largest positive finite values that can be represented in the given floating-point format. 6 Notable effects of this ordering are:

| |

Jagger Software Ltd | |

Company # 4070126 | |

VAT # 762 5213 42 |