reference/bc/functions/bcadd.xml
23f5599c8cc2713e7a4fdc29d8cceab66c341c48
...
...
@@ -10,13 +10,13 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>bcadd</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
-
Sums <parameter>left_operand</parameter> and
19
-
<parameter>right_operand</parameter>.
18
+
Sums <parameter>num1</parameter> and
19
+
<parameter>num2</parameter>.
20
20
</para>
21
21
</refsect1>
22
22

...
...
@@ -25,7 +25,7 @@
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
31
The left operand, as a string.
...
...
@@ -33,7 +33,7 @@
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
39
The right operand, as a string.
...
...
@@ -52,6 +52,28 @@
52
52
</para>
53
53
</refsect1>
54
54
55
+
<refsect1 role="changelog">
56
+
&reftitle.changelog;
57
+
<informaltable>
58
+
<tgroup cols="2">
59
+
<thead>
60
+
<row>
61
+
<entry>&Version;</entry>
62
+
<entry>&Description;</entry>
63
+
</row>
64
+
</thead>
65
+
<tbody>
66
+
<row>
67
+
<entry>8.0.0</entry>
68
+
<entry>
69
+
<parameter>scale</parameter> is now nullable.
70
+
</entry>
71
+
</row>
72
+
</tbody>
73
+
</tgroup>
74
+
</informaltable>
75
+
</refsect1>
76
+

55
77
<refsect1 role="examples">
56
78
&reftitle.examples;
57
79
<example>
...
...
@@ -81,7 +103,6 @@ echo bcadd($a, $b, 4); // 6.2340
81
103
</para>
82
104
</refsect1>
83
105
</refentry>
84
-

85
106
<!-- Keep this comment at the end of the file
86
107
Local variables:
87
108
mode: sgml
88
109