reference/bc/functions/bccomp.xml
23f5599c8cc2713e7a4fdc29d8cceab66c341c48
...
...
@@ -10,13 +10,13 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>int</type><methodname>bccomp</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
-
Compares the <parameter>left_operand</parameter> to the
19
-
<parameter>right_operand</parameter> and returns the result as an
18
+
Compares the <parameter>num1</parameter> to the
19
+
<parameter>num2</parameter> and returns the result as an
20
20
integer.
21
21
</para>
22
22
</refsect1>
...
...
@@ -26,7 +26,7 @@
26
26
<para>
27
27
<variablelist>
28
28
<varlistentry>
29
-
<term><parameter>left_operand</parameter></term>
29
+
<term><parameter>num1</parameter></term>
30
30
<listitem>
31
31
<para>
32
32
The left operand, as a string.
...
...
@@ -34,7 +34,7 @@
34
34
</listitem>
35
35
</varlistentry>
36
36
<varlistentry>
37
-
<term><parameter>right_operand</parameter></term>
37
+
<term><parameter>num2</parameter></term>
38
38
<listitem>
39
39
<para>
40
40
The right operand, as a string.
...
...
@@ -59,11 +59,33 @@
59
59
&reftitle.returnvalues;
60
60
<para>
61
61
Returns 0 if the two operands are equal, 1 if the
62
-
<parameter>left_operand</parameter> is larger than the
63
-
<parameter>right_operand</parameter>, -1 otherwise.
62
+
<parameter>num1</parameter> is larger than the
63
+
<parameter>num2</parameter>, -1 otherwise.
64
64
</para>
65
65
</refsect1>
66
66
67
+
<refsect1 role="changelog">
68
+
&reftitle.changelog;
69
+
<informaltable>
70
+
<tgroup cols="2">
71
+
<thead>
72
+
<row>
73
+
<entry>&Version;</entry>
74
+
<entry>&Description;</entry>
75
+
</row>
76
+
</thead>
77
+
<tbody>
78
+
<row>
79
+
<entry>8.0.0</entry>
80
+
<entry>
81
+
<parameter>scale</parameter> is now nullable.
82
+
</entry>
83
+
</row>
84
+
</tbody>
85
+
</tgroup>
86
+
</informaltable>
87
+
</refsect1>
88
+

67
89
<refsect1 role="examples">
68
90
&reftitle.examples;
69
91
<example>
...
...
@@ -82,7 +104,6 @@ echo bccomp('1.00001', '1', 5); // 1
82
104
</example>
83
105
</refsect1>
84
106
</refentry>
85
-

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