pow10
, pow10f
—base 10 power functions#include <math.h> double pow10(double x); float pow10f(float x);
Description
pow10
and pow10f
calculate 10 ^ x, that is,
10 raised to the power x.
You can use the (non-ANSI) function matherr
to specify
error handling for these functions.
Returns
pow10
and pow10f
return the calculated value.
If the result underflows, the returned value is 0
. If the
result overflows, the returned value is HUGE_VAL
. In
either case, errno
is set to ERANGE
.
Portability
pow10
and pow10f
are GNU extensions.