floor_divide
relationalai.semantics.std.math
floor_divide(numerator: NumberValue, denominator: NumberValue) -> ExpressionPerform floor division (the quotient rounded toward negative infinity).
This is the same operation as the // operator. The result follows Python:
for operands of opposite sign, floor_divide(-7, 2) is -4 (not -3).
Use trunc_divide for division that truncates toward zero.
Parameters
Section titled “Parameters”
(numeratorNumberValue) - The numerator.
(denominatorNumberValue) - The denominator.
Returns
Section titled “Returns”Expression- AnExpressioncomputing the floored quotient. ReturnsNumberforNumberinputs, orFloatforFloatinputs.