float
relationalai.semantics.std.floats
float(value: Value) -> ExpressionConvert a value to a Float.
Parameters
Section titled “Parameters”
(valueValue) - The value to convert to aFloat.
Returns
Section titled “Returns”Expression- AnExpressioncomputing theFloatconversion. ReturnsFloat.
Examples
Section titled “Examples”Convert various types to floats:
>>> floats.float(42)>>> floats.float(Product.price)Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works > Use advanced reasoning ├── Graph reasoning │ └── Create a graph └── Rules-based reasoning └── Work with numbers └── Cast numeric values