pow()
Returns xy.
Synopsis
float pow(float x, float y );
Parameters
Parameter | Description |
---|---|
x | mantissa |
y | Exponent |
Return value
The function returns the result or 0.0 in the event of errors.
Error
Description
Returns x to the power of y. An argument error occurs when x =0 and y<=0, or with x<0 and if y is not an integer.
Example
main()
{
float f;
f=pow(2.0, 8.0); //natural 256
f=sqrt(f); // results in 16
f=pow(27.0, 1.0/3.0); // results in 3
}
Assignment
mathematical function
Availability
CTRL