Question: how to calculate the mod of a negative number?
Answer: The modulus of 0 is 0. So, the modulus of a positive number is simply the number. The modulus of a negative number is found by ignoring the minus sign. The modulus of a number is denoted by writing vertical lines around the number.