1

##### The Workshop / Re: C pow()

« Last post by**TimoVJL**on

*»*

**Today**at 12:58:17 AMISO/IEC 9899:TC2 Committee Draft — May 6, 2005 WG14/N1124

Quote

7.12.7.4 The pow functions

Synopsis

1 #include <math.h>

double pow(double x, double y);

float powf(float x, float y);

long double powl(long double x, long double y);

Description

2 The pow functions compute x raised to the power y. A domain error occurs if x is finite

and negative and y is finite and not an integer value. A range error may occur. A domain

error may occur if x is zero and y is zero. A domain error or range error may occur if x

is zero and y is less than zero.

Returns

3 The pow functions return x y