0 votes
in C Plus Plus by

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

1 Answer

0 votes
by

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 < stdlib.h > and fabs() is under < math.h >.

Related questions

0 votes
asked Nov 26, 2019 in Agile by anonymous
0 votes
asked Jan 3 in Python by DavidAnderson
0 votes
asked Apr 13, 2020 in QuickTest Professional (QTP) by amita rallin
...