COHERENT manpages

This page displays the COHERENT manpage for fabs() [Compute absolute value].

List of available manpages
Index


fabs() -- Mathematics Function (libm)

Compute absolute value
#include <math.h>
double fabs(z) double z;

fabs() implements the  absolute value function.  It returns z  if z is zero
or positive, or -z if z is negative.

Example

For an example of this function, see the entry for ceil().

See Also

abs(),
ceil(),
floor(),
frexp(),
libm
ANSI Standard, §7.5.6.2
POSIX Standard, §8.1