Skip to content

integer

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

Create an expression that represents an integer with this value.

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

Create integer expressions:

>>> numbers.integer(42)
>>> numbers.integer(Employee.age)
RelationalAI Documentation
└──  Build With RelationalAI
    └──  Understand how PyRel works > Use advanced reasoning > Rules-based reasoning
        └──  Work with numbers
            └──  Cast numeric values