Abs Algorithm

Generalization of the absolute value for real numbers happen in a wide variety of mathematical settings. In mathematics, the absolute value or modulus of a real number X, denoted |x|, is the non-negative value of X without regard to its sign.

Abs source code, pseudocode and analysis