What is Modulus Function? The modulus function gives the magnitude or absolute value of a number irrespective of the number being positive or negative. Modulus function is denoted as y = |x| or f(x) = |x|, where f: R → R and x ∈ R. This is also called the absolute value function.