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
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 ...
CPlus's user avatar
  • 8,321
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 ...
MarcellPerger's user avatar