SyntaxFix
Write A Post
Hire A Developer
Questions
abs() is for integers only. For floating point, use fabs() (or one of the fabs() line with the correct precision for whatever a actually is)
abs()
fabs()