what is the difference between math.abs() and math.fabs()? give examples .python se
Answers
Answered by
0
Answer:
The difference is that math. fabs(number) will always return a floating point number even if the argument is integer, whereas abs() will return a floating point or an integer depending upon the argument. In case the argument is a complex number, abs() will return the magnitude part where as fabs() will return an error.
Explanation:
hope it helps u
:)
Similar questions