Modulo operation
Computational operation
The English used in this article or section may not be easy for everybody to understand. (February 2021) |
In mathematics, the modulo operation works out the remainder (what's left over) when we divide two integers (whole numbers without a fraction or a decimal) together. For example, 5 modulo 2 is 1, because if we divide 5 by 2, then we get 2 (because ) with 1 left over. Instead of writing modulo, people sometimes write . [1]
Because computers and calculators store numbers in different ways, they sometimes use different steps to work out the modulus (what we get when we modulo two numbers).
Related pagesEdit
ReferencesEdit
- ↑ "Definition of MODULUS". www.merriam-webster.com. Retrieved 2021-02-06.