This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Where is C++'s math.h's double abs(double)?
- To: Jeffrey Oldham <oldham at codesourcery dot com>
- Subject: Re: Where is C++'s math.h's double abs(double)?
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 03 Apr 2001 00:17:34 +0200
- Cc: libstdc++ at gcc dot gnu dot org
- Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
- References: <20010402141647.A11992@codesourcery.com>
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