pow
Calculates the x (base value) ^ y (power exponent).
Indirect parameter passing is disabled
2
No. | Type | Description |
---|---|---|
1 input |
numeral | Base value Value to be raised to the power exponent |
2 input |
numeral | Exponent Exponent value to apply. Default value: 1 |
Type | Description |
---|---|
numeral | Result Calculated result |
Values provided is not a numerals
rounding intervals is negative or zero
echo( pow( 7, 2 ) );
echo( pow( 3, 3 ) );
echo( pow( 81, 0.5 ) );
echo( pow( 27, 1/3 ) );
49
27
9
3