Skip to content

FloatLT

FloatLT

Description

Test whether lhs is strictly less 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 smaller = FloatLT(&value, other);

Returns

true when lhs < rhs.

Usage example (Cross-references)

Usage examples (Cross-references)
        Float c = FloatFromStr(FLOAT_TEST_VERY_LARGE_ONES);
    
        bool result = FloatLT(&a, &b);
        result      = result && FloatGT(&b, &a);
        result      = result && (FloatCompare(&a, &c) == 0);
    
        bool result = FloatGT(&large, &small);
        result      = result && FloatLT(&negative_large, &small);
        result      = result && FloatNE(&large, &small);
        Float expected = FloatFromStr("5e-1");
    
        bool result = FloatLT(&a, &b);
        result      = result && FloatLE(&a, &b);
        result      = result && FloatGT(&b, &a);
Last updated on