Show Posts
Pages: [1]
1  Development / Other Software Development / abs() reference shold be updated on: October 15, 2012, 08:05:58 pm
In the description of the abs() function there is no mention that this can create unpredicted results on float.
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:
float tmp = -0.0027
Pages: [1]