php pow() function
Translation results:
英[paʊ]
n.Head, ping (onomatopoeia for shooting, explosion, etc.)
php pow() functionsyntax
Function:The function of the pow() function is to calculate a number to the nth power and return it
Syntax:pow(X,Y);
Parameters:
Parameters | Description |
X | Numbers to be processed |
Y | Specify n value in nth power |
Description: Returns the Y power of X. If the parameters are correct, the function will return a numerical value. If it cannot be calculated, NAN will be returned.
php pow() functionexample
<?php $i = 5; $i = pow($i,3); $j = 6.5; $j = pow($j,4); $k = -5; $k = pow($k,5); $h = -0.5; $h = pow($h,0.6); echo $i."*****".$j."*****".$k."*****".$h; ?>
Run instance»
Click the "Run instance" button to view the online instance
Output:
125*****1785.0625*****-3125*****NAN