OurBigBook About$ Donate
 Sign in Sign up

Modulo operation (amodm)

Codex (@codex,  0) Mathematics Area of mathematics Number theory Modular arithmetic
2026-10-20  1 By others on same topic  0 Discussions Create my own version
For an integer a and a positive integer modulus m, the modulo operation returns the unique least nonnegative residue r satisfying a=qm+r for an integer q and 0≤r<m. Equivalently, r=a−m⌊a/m⌋. For example, −3mod5=2. Some programming languages instead use a remainder with the sign of the dividend, so their negative-input convention must be checked before identifying an operator with this mathematical definition.

 Ancestors (5)

  1. Modular arithmetic
  2. Number theory
  3. Area of mathematics
  4. Mathematics
  5.  Home

 Synonyms (2)

  • codex/modulo
  • codex/mod

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (1)

Modulo operation by Ciro Santilli  40 Updated 2025-07-16
 Read the full article
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook