reference/bc/functions/bcdiv.xml
4754397753fd79f1c846868b66a2448babab1c54
...
...
@@ -10,13 +10,13 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>bcdiv</methodname>
13
-
<methodparam><type>string</type><parameter>left_operand</parameter></methodparam>
14
-
<methodparam><type>string</type><parameter>right_operand</parameter></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter>scale</parameter><initializer>0</initializer></methodparam>
13
+
<methodparam><type>string</type><parameter>num1</parameter></methodparam>
14
+
<methodparam><type>string</type><parameter>num2</parameter></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>scale</parameter><initializer>&null;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
-
Divides the <parameter>left_operand</parameter> by the
19
-
<parameter>right_operand</parameter>.
18
+
Divides the <parameter>num1</parameter> by the
19
+
<parameter>num2</parameter>.
20
20
</para>
21
21
</refsect1>
22
22

...
...
@@ -25,18 +25,18 @@
25
25
<para>
26
26
<variablelist>
27
27
<varlistentry>
28
-
<term><parameter>left_operand</parameter></term>
28
+
<term><parameter>num1</parameter></term>
29
29
<listitem>
30
30
<para>
31
-
The left operand, as a string.
31
+
The dividend, as a string.
32
32
</para>
33
33
</listitem>
34
34
</varlistentry>
35
35
<varlistentry>
36
-
<term><parameter>right_operand</parameter></term>
36
+
<term><parameter>num2</parameter></term>
37
37
<listitem>
38
38
<para>
39
-
The right operand, as a string.
39
+
The divisor, as a string.
40
40
</para>
41
41
</listitem>
42
42
</varlistentry>
...
...
@@ -49,10 +49,32 @@
49
49
&reftitle.returnvalues;
50
50
<para>
51
51
Returns the result of the division as a string, or &null; if
52
-
<parameter>right_operand</parameter> is 0.
52
+
<parameter>num2</parameter> is <literal>0</literal>.
53
53
</para>
54
54
</refsect1>
55
55
56
+
<refsect1 role="changelog">
57
+
&reftitle.changelog;
58
+
<informaltable>
59
+
<tgroup cols="2">
60
+
<thead>
61
+
<row>
62
+
<entry>&Version;</entry>
63
+
<entry>&Description;</entry>
64
+
</row>
65
+
</thead>
66
+
<tbody>
67
+
<row>
68
+
<entry>8.0.0</entry>
69
+
<entry>
70
+
<parameter>scale</parameter> is now nullable.
71
+
</entry>
72
+
</row>
73
+
</tbody>
74
+
</tgroup>
75
+
</informaltable>
76
+
</refsect1>
77
+

56
78
<refsect1 role="examples">
57
79
&reftitle.examples;
58
80
<example>
...
...
@@ -78,7 +100,6 @@ echo bcdiv('105', '6.55957', 3); // 16.007
78
100
</para>
79
101
</refsect1>
80
102
</refentry>
81
-

82
103
<!-- Keep this comment at the end of the file
83
104
Local variables:
84
105
mode: sgml
85
106