logo

Your Questions / Our Solutions


Jese Leos

Helpdice Team

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

<p>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 &lt; stdlib.h &gt; and fabs() is under &lt; math.h &gt;.</p>
  • Share On: