pow10, pow10l

De RAD Studio
Aller à : navigation, rechercher

Remonter à Math.h - Index


Header File

math.h

Category

Math Routines

Prototype

double pow10(int p);

long double pow10l(int p);

Description

Calculates 10 to the power of p.

pow10l is the long double version; it takes long double arguments and returns a long double result.

Return Value

On success, pow10 returns the value calculated, 10 to the power of p and pow10l returns a long double result.

The result is actually calculated to long double accuracy. All arguments are valid, although some can cause an underflow or overflow.

Example



 #include <math.h>
 #include <stdio.h>
 int main(void)
 {
   double p = 3.0;
   printf("Ten raised to %lf is %lf\n", p, pow10(p));
   return 0;
 }



Portability



POSIX Win32 ANSI C ANSI C++

pow10

+

pow10l

+