The absolute value function, denoted by |x|, is a mathematical function that takes any real number x and returns its non-negative distance from zero. In other words, the absolute value of a number is its magnitude, regardless of whether it is positive or negative.
Note : The absolute value function is sometimes also called modulus function.