Skip to main content

Questions tagged [division]

For questions regarding division, either floor division, ceiling division, or division without rounding.

Filter by
Sorted by
Tagged with
7 votes
1 answer
417 views

Why is truncated or non-Euclidean division/modulo the norm?

Related to, but not the same question: Distinguishing modulo (Euclidean division) from remainder There are multiple ways a modulo operation can be performed. Most implementations, in C, for example, ...
6 votes
6 answers
372 views

Ways to have operators for both normal and floor division

I want to have an operator for true division (like / in python) giving a float as the result and floor division (like // in ...
19 votes
3 answers
4k views

Why does MATLAB have left division/solve?

In MATLAB (and Octave), the \ (or mldivide) and \. operators are provided with the exact ...
13 votes
5 answers
788 views

Distinguishing modulo (Euclidean division) from remainder

The % operator in most programming language provide a remainder from integer division. When both operands are positive all works as expected. But when the number is ...