1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: jakquan Status: ready -->
3
+ <!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: jakquan Status: ready -->
4
4
<!-- CREDITS: mowangjuanzi -->
5
5
<refentry xml : id =" function.bcpow" xmlns =" http://docbook.org/ns/docbook" >
6
6
<refnamediv >
@@ -125,16 +125,14 @@ echo bcpow('4.2', '3', 2); // 74.08
125
125
&reftitle.notes;
126
126
<note >
127
127
<para >
128
- Before PHP 7.3.0 <function >bcpow</function > may return a result with fewer digits after the
129
- decimal point than the <parameter >scale</parameter > parameter would
130
- indicate. This only occurs when the result doesn't require all of the
131
- precision allowed by the <parameter >scale</parameter >. For example:
128
+ PHP 7.3.0 之前,<function >bcpow</function > 返回的结果,小数点后的小数位数可能比 <parameter >scale</parameter >
129
+ 参数指定的少。只有当结果不需要 <parameter >scale</parameter > 允许的所有小数位数时,才会发生这种情况。例如:
132
130
<example >
133
- <title ><function >bcpow</function > scale example </title >
131
+ <title ><function >bcpow</function > 小数位数示例 </title >
134
132
<programlisting role =" php" >
135
133
<![CDATA[
136
134
<?php
137
- echo bcpow('5', '2', 2); // prints "25", not "25.00"
135
+ echo bcpow('5', '2', 2); // 打印 "25" 而不是 "25.00"
138
136
?>
139
137
]]>
140
138
</programlisting >
@@ -149,6 +147,7 @@ echo bcpow('5', '2', 2); // prints "25", not "25.00"
149
147
<simplelist >
150
148
<member ><function >bcpowmod</function ></member >
151
149
<member ><function >bcsqrt</function ></member >
150
+ <member ><methodname >BcMath\Number::pow</methodname ></member >
152
151
</simplelist >
153
152
</para >
154
153
</refsect1 >
0 commit comments