I have proven this by writing a small sketch where it works fine, but when using abs() in my bigger project it fails when processing the exact same number (-0.0027).
Please update the description for the abs() function and tell us to use fabs instead.
This code works:
Code:
float tmp = -0.0027
tmp=fabs(tmp);
tmp=fabs(tmp);