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 - pow http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   pow

   Usage
   #include <math.h>
   double pow(double x,double y);

   Description
   pow returns the value of x to the y power. Domain error if x==0 and  y
   <=0 or x <=0 and y is not an integer.

   Example
   #include <stdio.h>
   #include <math.h>
   main()
   {
   double x = 3, y = 2, result;
        result = pow(x,y);
        printf("%.2f to the power of %.2f is: %.2f\n",x,y,result);
   }

   Return Value
   The double result is returned.


See Also: exp log sqrt

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