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);Success
Returns true when lhs > rhs.
Failure
Returns false otherwise. Neither operand is modified.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Compare.c:72:
bool result = FloatLT(&a, &b);
result = result && FloatGT(&b, &a);
result = result && (FloatCompare(&a, &c) == 0);
result = result && FloatEQ(&a, &c);- In
Compare.c:92:
Float small = FloatFromStr("2.5", &alloc.base);
bool result = FloatGT(&large, &small);
result = result && FloatLT(&negative_large, &small);
result = result && FloatNE(&large, &small);- In
Compare.c:114:
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);- In
Compare.c:146:
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);- In
Math.c:711:
Float tiny = FloatFrom(0x1p-149f, &alloc.base);
bool result = FloatLT(&tiny, 1.0f) && FloatGT(&tiny, 0.0f);
FloatDeinit(&tiny);- In
Math.c:767:
Float tiny = FloatFrom(0x1p-1074, &alloc.base);
bool result = FloatLT(&tiny, 1.0) && FloatGT(&tiny, 0.0);
FloatDeinit(&tiny);
Last updated on