Talk:C mathematical functions
Appearance
![]() | C/C++ Unassessed | |||||||||
|
C99 functions.
Should the C99 math.h functions be included here as well? E.g. fabsf, fabsl, etc. These functions all deal with floats and long doubles -- cmath is not required for that. --204.69.182.1 17:42, 28 July 2006 (UTC)
C++?
C++'s cmath is different from math.h. In particular, cmath puts the functions in the std namespace and uses overloading so that abs(-1.0) does the Right Thing rather than requiring the user to call fabs(-1.0) for doubles and abs(-1) for integers. The page should reflect that. —Ben FrantzDale (talk) 17:46, 23 November 2008 (UTC)