PHP.nl

fpow

fpow

Raise one number to the power of another, according to IEEE 754

float **fpow** float $num float $exponent

Returns the floating point result of raising to the power of . If is zero and is less than zero, then is returned. num``exponent``num``exponent``INF

numThe base to use.

exponentThe exponent.

Returns a corresponding to . float``$num$exponent

Voorbeeld: example

<?php
var_dump(fpow(10, 2));
var_dump(fpow(0, -3));
var_dump(fpow(-1, 5.5));
?>
float(100)
float(INF)
float(NAN)

**pow``fdiv``fmod