
14 Expressions
14.9 Relational and type-testing operators
14.9.2 Floating-point comparison operators
Paragraph 11 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);Paragraph 21 The operators compare the operands according to the rules of the IEEE 754 standard:
{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 |