Where is C++'s math.h's double abs(double)?

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
Mon Apr 2 15:17:00 GMT 2001


Jeffrey Oldham <oldham@codesourcery.com> writes:

| [1  <text/plain; us-ascii (7bit)>]
| Why is C++ program that includes math.h not able to access
| 			 double abs (double)

Hi Jeffrey,

There is no

	double abs(double) 

declared in <math.h> -- the double version in <math.h> is named "fabs". 

However

	double std::abs(double)

is declared in <cmath>

-- Gaby



More information about the Libstdc++ mailing list