pow()


float pow ( float $base, float $exp )

Description

pow() returns $base raised to the power of $exp

※ available F/W version : all

Parameters

Return values

Returns $base raised to the power of $exp

Example

<?php
$base = 2.0;
$exp = 3.0;
$ret = pow($base, $exp);

echo "ret = $ret\r\n";  // OUTPUT: ret = 8
?>

See also

exp()

Remarks

This function is identical to the PHP group’s pow() function, but it supports only float.