For integer numbers, the abs() function returns the absolute value of the given number. For floating point numbers, the abs() function returns the absolute value of the given number. For complex numbers, the abs() function returns the magnitude of the given number.