reference/math/functions/intdiv.xml
0c9c2dd669fe9395eaa73d487fbd160f9057429a
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="function.intdiv" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>intdiv</refname>
...
...
@@ -9,19 +8,19 @@
9
8
<refsect1 role="description">
10
9
&reftitle.description;
11
10
<methodsynopsis>
12
-
<type>int</type><methodname>intdiv</methodname>
13
-
<methodparam><type>int</type><parameter>dividend</parameter></methodparam>
14
-
<methodparam><type>int</type><parameter>divisor</parameter></methodparam>
15
-
</methodsynopsis>
11
+
<type>int</type><methodname>intdiv</methodname>
12
+
<methodparam><type>int</type><parameter>num1</parameter></methodparam>
13
+
<methodparam><type>int</type><parameter>num2</parameter></methodparam>
14
+
</methodsynopsis>
16
15
<para>
17
-
Returns the integer quotient of the division of <parameter>dividend</parameter> by <parameter>divisor</parameter>.
16
+
Returns the integer quotient of the division of <parameter>num1</parameter> by <parameter>num2</parameter>.
18
17
</para>
19
18
</refsect1>
20
19
<refsect1 role="parameters">
21
20
&reftitle.parameters;
22
21
<variablelist>
23
22
<varlistentry>
24
-
<term><parameter>dividend</parameter></term>
23
+
<term><parameter>num1</parameter></term>
25
24
<listitem>
26
25
<para>
27
26
Number to be divided.
...
...
@@ -29,10 +28,10 @@
29
28
</listitem>
30
29
</varlistentry>
31
30
<varlistentry>
32
-
<term><parameter>divisor</parameter></term>
31
+
<term><parameter>num2</parameter></term>
33
32
<listitem>
34
33
<para>
35
-
Number which divides the <parameter>dividend</parameter>.
34
+
Number which divides the <parameter>num1</parameter>.
36
35
</para>
37
36
</listitem>
38
37
</varlistentry>
...
...
@@ -41,15 +40,15 @@
41
40
<refsect1 role="returnvalues">
42
41
&reftitle.returnvalues;
43
42
<para>
44
-
The integer quotient of the division of <parameter>dividend</parameter> by <parameter>divisor</parameter>.
43
+
The integer quotient of the division of <parameter>num1</parameter> by <parameter>num2</parameter>.
45
44
</para>
46
45
</refsect1>
47
46
<refsect1 role="errors">
48
47
&reftitle.errors;
49
48
<para>
50
-
If <parameter>divisor</parameter> is <literal>0</literal>, a <classname>DivisionByZeroError</classname>
51
-
exception is thrown. If the <parameter>dividend</parameter> is <constant>PHP_INT_MIN</constant>
52
-
and the <parameter>divisor</parameter> is <literal>-1</literal>, then an
49
+
If <parameter>num2</parameter> is <literal>0</literal>, a <classname>DivisionByZeroError</classname>
50
+
exception is thrown. If the <parameter>num1</parameter> is <constant>PHP_INT_MIN</constant>
51
+
and the <parameter>num2</parameter> is <literal>-1</literal>, then an
53
52
<classname>ArithmeticError</classname> exception is thrown.
54
53
</para>
55
54
</refsect1>
...
...
@@ -88,8 +87,17 @@ Fatal error: Uncaught DivisionByZeroError: Division by zero in %s on line 9
88
87
</example>
89
88
</para>
90
89
</refsect1>
90
+
<refsect1 role="seealso">
91
+
&reftitle.seealso;
92
+
<para>
93
+
<simplelist>
94
+
<member><link linkend="language.operators.arithmetic"><literal>/</literal></link> - Floating-point division</member>
95
+
<member><link linkend="language.operators.arithmetic"><literal>%</literal></link> - Integer modulus</member>
96
+
<member><function>fmod</function> - Floating-point modulo</member>
97
+
</simplelist>
98
+
</para>
99
+
</refsect1>
91
100
</refentry>
92
-

93
101
<!-- Keep this comment at the end of the file
94
102
Local variables:
95
103
mode: sgml
96
104