diff --git a/reference/math/functions/fdiv.xml b/reference/math/functions/fdiv.xml index 39bcc433b3..2652e648e9 100644 --- a/reference/math/functions/fdiv.xml +++ b/reference/math/functions/fdiv.xml @@ -1,6 +1,6 @@ - + @@ -81,9 +81,13 @@ var_dump(fdiv(0.0, 0.0)); // float(NAN) &reftitle.seealso; - / - 浮動小数点数の除算 + + 除算演算子 + / + intdiv - 整数値の除算 - fmod - 剰余 + fmod + fpow diff --git a/reference/math/functions/fpow.xml b/reference/math/functions/fpow.xml new file mode 100644 index 0000000000..b42c4b6da4 --- /dev/null +++ b/reference/math/functions/fpow.xml @@ -0,0 +1,112 @@ + + + + + + fpow + IEEE 754 に従い、数値をべき乗する + + + + &reftitle.description; + + floatfpow + floatnum + floatexponent + + + num の + exponent 乗の結果を浮動小数点数として返します。 + num が 0 で exponent が負数の場合は、 + INF を返します。 + + + + + &reftitle.parameters; + + + num + + + 使用する基数。 + + + + + exponent + + + 指数。 + + + + + + + + &reftitle.returnvalues; + + $num$exponent を + float で返します。 + + + + + &reftitle.examples; + + <function>fpow</function> の例 + + +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + + べき乗演算子 + ** + + pow + fdiv + fmod + + + + + diff --git a/reference/math/functions/pow.xml b/reference/math/functions/pow.xml index aca9862fbd..fc0cca5609 100644 --- a/reference/math/functions/pow.xml +++ b/reference/math/functions/pow.xml @@ -1,6 +1,6 @@ - + @@ -58,6 +58,30 @@ PHP の拡張モジュールは、この演算の振る舞いを上書きし、オブジェクトを返させても構いません。 + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.4.0 + + 基数が 0 の場合に、 + exponent を負数とするのは非推奨となりました。 + + + + + + + &reftitle.examples; @@ -96,6 +120,11 @@ echo pow(-1, 5.5); // NAN &reftitle.seealso; + + べき乗演算子 + ** + + fpow exp sqrt bcpow