Revision a61c970f
ID | a61c970f1e27a55ede0bafbe3145dafa9c901af1 |
Parent | d7b28532 |
Child | 651c5f56 |
Fix use of abs() function with float argument.
The abs() function in stdlib.h takes an integer argument. Passing it a float
will silently convert the argument to int, and take the absolute value of the
result. Hence, abs(0.99) == 0, which is not what was intended. Use fabs instead.
Files
- added
- modified
- copied
- renamed
- deleted