IEEE comparison predicates #
The truth tables in IEEE 754-2019 Tables 5.1–5.2 depend only on four possible relations: less, equal, greater, and unordered. This module shares those tables between numerical formats. Operand decoding and the invalid-operation flag belong to each format's API.
A predicate's truth value and the exceptions raised while evaluating it.
- value : Bool
The Boolean answer, including the predicate's unordered case.
- status : IEEEStatus
Exceptions raised by this comparison.
Instances For
Instances For
Instances For
Truth sets named by the IEEE quiet and signaling comparison operations.
- equal : Predicate
- notEqual : Predicate
- greater : Predicate
- greaterEqual : Predicate
- less : Predicate
- lessEqual : Predicate
- unordered : Predicate
- ordered : Predicate
- lessUnordered : Predicate
- notGreater : Predicate
- notLess : Predicate
- greaterUnordered : Predicate
Instances For
Instances For
Inequality is the complement of equality, including unordered inputs.
Ordered and unordered are complementary predicates.
Not-greater includes unordered inputs and is the complement of greater-than.
Not-less includes unordered inputs and is the complement of less-than.
Less-or-unordered complements greater-or-equal across all four relations.
Greater-or-unordered complements less-or-equal across all four relations.