Quot
Quot[m, n]
Performs integer division of m by n, truncating toward zero. This function pairs with Rem (remainder) such that:
Let[always_true, Fun[{ m, n }, Eq[Add[Mul[Quot[m, n], n], Rem[m, n]], m]]];
always_true[7, -3]; (* => #t *)
always_true[-9, 2]; (* => #t *)
mandnshould be integers.- Returns a
Numberrepresenting the integer quotient.
Quot[7, 3]; (* => 2 *)
Quot[-7, 3]; (* => -2 *)