SyntaxFix
Write A Post
Hire A Developer
Questions
Use fabs() (in math.h) to get absolute-value for double:
fabs()
double
double d1 = fabs(-3.8951);