delorie.com/djgpp/doc/libc/libc_303.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <math.h> double fabs(double x); |
This function computes the absolute value of its argument x.
x if x is positive, else -x. Note that in this
context, +0.0 is positive and -0.0 is negative. Infinities and
NaN
s are returned unchanged, except for the sign.
ANSI/ISO C | C89; C99 |
POSIX | 1003.2-1992; 1003.1-2001 |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |