The abs function computes the absolute value of a numeric value x.
abs(2.0); 2. abs(-2.0); 2. abs(1/2); 1/2 abs(-1/2); 1/2