Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <math.h>
    double fabs( double x );

Description:
    The fabs function computes the absolute value of the argument x.

Returns:
    The fabs function returns the absolute value of x.

See Also:
    abs, labs

Example:
    #include <stdio.h>
    #include <math.h>

    void main()
      {
        printf( "%f %f\n", fabs(.5), fabs(-.5) );
      }

    produces the following:

    0.500000 0.500000

Classification:
    ANSI

Systems:
    All

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson