Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - fabs http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   fabs

   Usage
   #include <math.h>
   double fabs(double x);

   Description
   Returns the absolute value of the floating point argument x.

   Example
   #include <stdio.h>
   #include <math.h>
   main()
   {
   double numbr, absval;
        numbr = -1.0;
        absval = fabs(numbr);
        printf("The fabs of (%f) is %f\n",numbr,absval);
   }

   Return Value
   Returns the absolute value of its double argument.


See Also: abs labs

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