Definition and Usage The math. fabs() method returns the absolute value of a number. Absolute denotes a non-negative number. This removes the negative sign of the value if it has any. Unlike abs(), this method always converts the value to a float value.