diff --git a/reference/bc/book.xml b/reference/bc/book.xml index 8822e1e4f..dde3b3a29 100644 --- a/reference/bc/book.xml +++ b/reference/bc/book.xml @@ -1,7 +1,7 @@ - - + + BCMath 任意精度数学 @@ -46,6 +46,7 @@ echo bcsub($num1, $num2, 1); // => '0.0' &reference.bc.setup; &reference.bc.reference; + &reference.bc.bcmath.number; diff --git a/reference/bc/functions/bcadd.xml b/reference/bc/functions/bcadd.xml index 0be602a2c..b23599763 100644 --- a/reference/bc/functions/bcadd.xml +++ b/reference/bc/functions/bcadd.xml @@ -1,6 +1,6 @@ - + @@ -115,6 +115,7 @@ echo bcadd($a, $b, 4); // 6.2340 bcsub + BcMath\Number::add diff --git a/reference/bc/functions/bccomp.xml b/reference/bc/functions/bccomp.xml index 4307bcc8e..c49256dcc 100644 --- a/reference/bc/functions/bccomp.xml +++ b/reference/bc/functions/bccomp.xml @@ -1,6 +1,6 @@ - + @@ -74,8 +74,14 @@ echo bccomp('1.00001', '1', 5); // 1 - + + &reftitle.seealso; + + BcMath\Number::compare + + + - + @@ -112,6 +112,7 @@ echo bcdiv('105', '6.55957', 3); // 16.007 bcdivmod bcmod bcmul + BcMath\Number::div diff --git a/reference/bc/functions/bcmod.xml b/reference/bc/functions/bcmod.xml index e52cbe424..7154cca29 100644 --- a/reference/bc/functions/bcmod.xml +++ b/reference/bc/functions/bcmod.xml @@ -1,6 +1,6 @@ - + @@ -113,6 +113,7 @@ echo bcmod('5.7', '1.3'); // PHP 7.2.0 起是 0.5;之前是 0 bcdiv bcdivmod + BcMath\Number::mod diff --git a/reference/bc/functions/bcmul.xml b/reference/bc/functions/bcmul.xml index ab4f44e45..b52d1cc80 100644 --- a/reference/bc/functions/bcmul.xml +++ b/reference/bc/functions/bcmul.xml @@ -1,6 +1,6 @@ - + @@ -103,6 +103,7 @@ echo bcmul('5', '2', 2); // 打印“10”而不是“10.00” bcdiv + BcMath\Number::mul diff --git a/reference/bc/functions/bcpow.xml b/reference/bc/functions/bcpow.xml index 7049bb7b0..12cfbe1d5 100644 --- a/reference/bc/functions/bcpow.xml +++ b/reference/bc/functions/bcpow.xml @@ -1,6 +1,6 @@ - + @@ -125,16 +125,14 @@ echo bcpow('4.2', '3', 2); // 74.08 &reftitle.notes; - Before PHP 7.3.0 bcpow may return a result with fewer digits after the - decimal point than the scale parameter would - indicate. This only occurs when the result doesn't require all of the - precision allowed by the scale. For example: + PHP 7.3.0 之前,bcpow 返回的结果,小数点后的小数位数可能比 scale + 参数指定的少。只有当结果不需要 scale 允许的所有小数位数时,才会发生这种情况。例如: - <function>bcpow</function> scale example + <function>bcpow</function> 小数位数示例 ]]> @@ -149,6 +147,7 @@ echo bcpow('5', '2', 2); // prints "25", not "25.00" bcpowmod bcsqrt + BcMath\Number::pow diff --git a/reference/bc/functions/bcsqrt.xml b/reference/bc/functions/bcsqrt.xml index c3eb31812..2c9b12b13 100644 --- a/reference/bc/functions/bcsqrt.xml +++ b/reference/bc/functions/bcsqrt.xml @@ -1,6 +1,6 @@ - + @@ -112,6 +112,7 @@ echo bcsqrt('2', 3); // 1.414 bcpow + BcMath\Number::sqrt diff --git a/reference/bc/functions/bcsub.xml b/reference/bc/functions/bcsub.xml index c4535dda5..8c81a72b2 100644 --- a/reference/bc/functions/bcsub.xml +++ b/reference/bc/functions/bcsub.xml @@ -1,6 +1,6 @@ - + @@ -81,6 +81,7 @@ echo bcsub($a, $b, 4); // -3.7660 bcadd + BcMath\Number::sub diff --git a/reference/bc/ini.xml b/reference/bc/ini.xml index e7cf30464..c93ed5a06 100755 --- a/reference/bc/ini.xml +++ b/reference/bc/ini.xml @@ -1,7 +1,7 @@ - - + +
&reftitle.runtime; &extension.runtime; @@ -44,6 +44,9 @@ 所有 bcmath 函数中十进制数字的数目。参见 bcscale。 + + BcMath\Number 不受此设置的影响。 + diff --git a/reference/fpm/status.xml b/reference/fpm/status.xml index 0dbb80145..f91099442 100644 --- a/reference/fpm/status.xml +++ b/reference/fpm/status.xml @@ -1,6 +1,6 @@ - + 状态页面 @@ -165,6 +165,12 @@ 达到配置 request_slowlog_timeout 的请求总数。 + + memory peak + + FPM 启动以来的内存使用峰值。 + +