Skip to content

integer

relationalai.semantics.std.numbers
integer(value: NumberValue) -> Variable

Create an expression that represents an integer with this value.

Parameters

  • value

    (NumberValue) - The integer value.

Returns

  • Variable - A Variable representing the integer value. Returns Integer.

Examples

Create integer expressions:

numbers.integer(42)
numbers.integer(Employee.age)

Referenced By

RelationalAI Documentation
└──  Build With RelationalAI
    └──  Understand how PyRel works > Use advanced reasoning > Rules-based reasoning
        └──  Work with numbers
            └──  Cast numeric values