diff --git a/reference/math/functions/fdiv.xml b/reference/math/functions/fdiv.xml index c75b2e1487d1..95457f616bc7 100644 --- a/reference/math/functions/fdiv.xml +++ b/reference/math/functions/fdiv.xml @@ -76,9 +76,13 @@ var_dump(fdiv(0.0, 0.0)); // float(NAN) &reftitle.seealso; - / - Floating-point division + + Division operator + / + intdiv - Integer division - fmod - Modulus + fmod + fpow diff --git a/reference/math/functions/fpow.xml b/reference/math/functions/fpow.xml new file mode 100644 index 000000000000..dc8a2d264fb1 --- /dev/null +++ b/reference/math/functions/fpow.xml @@ -0,0 +1,110 @@ + + + + fpow + Raise one number to the power of another, according to IEEE 754 + + + + &reftitle.description; + + floatfpow + floatnum + floatexponent + + + Returns the floating point result of raising + num to the power of exponent. + If num is zero and exponent + is less than zero, then INF is returned. + + + + + &reftitle.parameters; + + + num + + + The base to use. + + + + + exponent + + + The exponent. + + + + + + + + &reftitle.returnvalues; + + Returns a float corresponding to + $num$exponent. + + + + + &reftitle.examples; + + <function>fpow</function> example + + +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + + Exponentiation operator + ** + + pow + fdiv + fmod + + + + + diff --git a/reference/math/functions/pow.xml b/reference/math/functions/pow.xml index e32338103b4e..fd6f17147dd4 100644 --- a/reference/math/functions/pow.xml +++ b/reference/math/functions/pow.xml @@ -95,6 +95,11 @@ echo pow(-1, 5.5); // NAN &reftitle.seealso; + + Exponentiation operator + ** + + fpow exp sqrt bcpow diff --git a/reference/math/versions.xml b/reference/math/versions.xml index 0429d661a3aa..f3688e13677d 100644 --- a/reference/math/versions.xml +++ b/reference/math/versions.xml @@ -26,6 +26,7 @@ +