FloatGT
FloatGT
Description
Test whether lhs is strictly greater than rhs.
Parameters
| Name | Direction | Description |
|---|---|---|
lhs |
in | Left-hand float |
rhs |
in | Right-hand operand selected through generic dispatch |
Usage example (from documentation)
bool larger = FloatGT(&value, 1u);Returns
true when lhs > rhs.
Usage example (Cross-references)
Usage examples (Cross-references)
bool result = FloatLT(&a, &b);
result = result && FloatGT(&b, &a);
result = result && (FloatCompare(&a, &c) == 0);
result = result && FloatEQ(&a, &c); Float small = FloatFromStr("2.5");
bool result = FloatGT(&large, &small);
result = result && FloatLT(&negative_large, &small);
result = result && FloatNE(&large, &small); bool result = FloatLT(&a, &b);
result = result && FloatLE(&a, &b);
result = result && FloatGT(&b, &a);
result = result && FloatGE(&b, &a);
result = result && FloatNE(&a, &b); result = result && FloatEQ(&value, 12.5);
result = result && FloatGE(&value, 12.5f);
result = result && FloatGT(&value, whole);
result = result && FloatLE(&value, 13);
result = result && FloatNE(&value, 12);
Last updated on