FloatNE
Description
Test whether two numeric values differ.
Parameters
| Name | Direction | Description |
|---|---|---|
lhs |
in | Left-hand float |
rhs |
in | Right-hand operand selected through generic dispatch |
Usage example (from documentation)
bool changed = FloatNE(&value, 0.0f);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:94:
bool result = FloatGT(&large, &small);
result = result && FloatLT(&negative_large, &small);
result = result && FloatNE(&large, &small);
FloatDeinit(&large);- In
Compare.c:116:
result = result && FloatGT(&b, &a);
result = result && FloatGE(&b, &a);
result = result && FloatNE(&a, &b);
result = result && FloatEQ(&b, &expected);- In
Compare.c:148:
result = result && FloatGT(&value, &whole);
result = result && FloatLE(&value, 13);
result = result && FloatNE(&value, 12);
FloatDeinit(&value);- In
Math.c:730:
Float b = FloatFrom(0x3p-149f, &alloc.base); // m == 3
bool result = FloatNE(&a, &b);
FloatDeinit(&a);- In
Math.c:785:
Float b = FloatFrom(0x3p-1074, &alloc.base); // m == 3
bool result = FloatNE(&a, &b);
FloatDeinit(&a);
Last updated on