0

What is the difference between abs() and fabs() functions?

Shathana. S.R. Answered question May 27, 2023
User Avatar

Both functions are to retrieve absolute value. abs() is for integer values and fabs() is for floating type numbers. Prototype for abs() is under the library file and fabs() is under .