I forgot the mathematical operator

I am a student of computer science I forgot why we use fabs function in a quadratic equation root finding programm...what's that fabs?


  • fabs() - floating point absolute value. For reasons to do with C's history the integer version of the function is abs().

    You probably need it to avoid taking the square root of a negative number.
  • This post has been deleted.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion