The Math.Abs(x) method returns the absolute (positive) value of x: code example Example: The Math.Abs(x) method returns the absolute (positive) value of x: Math.Abs(-4.7);