float
relationalai.semantics.std.floats
float(value: Value) -> ExpressionConvert a value to a Float.
Parameters
(valueValue) - The value to convert to aFloat.
Returns
Expression- AnExpressioncomputing theFloatconversion. ReturnsFloat.
Examples
Convert various types to floats:
floats.float(42)floats.float(Product.price)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