Is the modulus of a number n just n mod n
In school I was taught the modulus is the absolute value of a number, when we take the mod of a negative number, the remainder is always positive, even if the number itself is negative, so for example
-5 mod 2 = 1
So is the definition of the modulus of a number |a| just a mod a? Or is it just a coincidence the modulus and modulo are so closely in name, and the modulus is defined as something else?