integer
relationalai.semantics.std.numbers
integer(value: NumberValue) -> VariableCreate an expression that represents an integer with this value.
Parameters
Section titled “Parameters”
(valueNumberValue) - The integer value.
Returns
Section titled “Returns”Variable- AVariablerepresenting the integer value. ReturnsInteger.
Examples
Section titled “Examples”Create integer expressions:
>>> numbers.integer(42)>>> numbers.integer(Employee.age)Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works > Use advanced reasoning > Rules-based reasoning └── Work with numbers └── Cast numeric values