Skip to content

number

number #

Numeric operator procedures compare numeric procedure results.

NumberLessThan is the only numeric operator node; the >, <=, and >= operator overloads on Procedure instances are synthesized from it by swapping operands or wrapping the result in BoolNot.

NumberLessThan #

Bases: Procedure[Bool]

Compare two numbers, returning true if left is strictly less than right.

Also available as the < operator on procedures (>, <=, and >= are built from this node by swapping operands or negating).

Attributes:

Name Type Description
left Input[Number]

The left numeric operand.

right Input[Number]

The right numeric operand.

Source code in capturegraph-lib/capturegraph/procedures/nodes/process/operators/number.py
@make_procedure
class NumberLessThan(Procedure[Bool]):
    """Compare two numbers, returning true if left is strictly less than right.

    Also available as the ``<`` operator on procedures (``>``, ``<=``, and
    ``>=`` are built from this node by swapping operands or negating).

    Attributes:
        left: The left numeric operand.
        right: The right numeric operand.
    """

    left: Input[Number]
    right: Input[Number]