This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]