reference/gmp/functions/gmp-intval.xml
039ab719e695141ee54409d26ad828337ec31d6e
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.gmp-intval">
3
+
<refentry xml:id="function.gmp-intval" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>gmp_intval</refname>
6
6
<refpurpose>Convert GMP number to integer</refpurpose>
...
...
@@ -10,10 +10,10 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>int</type><methodname>gmp_intval</methodname>
13
-
<methodparam><type>resource</type><parameter>gmpnumber</parameter></methodparam>
13
+
<methodparam><type class="union"><type>GMP</type><type>int</type><type>string</type></type><parameter>num</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
-
This function allows to convert GMP number to integer.
16
+
This function converts GMP number into native PHP <type>int</type>s.
17
17
</para>
18
18
</refsect1>
19
19

...
...
@@ -22,11 +22,9 @@
22
22
<para>
23
23
<variablelist>
24
24
<varlistentry>
25
-
<term><parameter>gmpnumber</parameter></term>
25
+
<term><parameter>num</parameter></term>
26
26
<listitem>
27
-
<para>
28
-
A GMP number.
29
-
</para>
27
+
&gmp.parameter;
30
28
</listitem>
31
29
</varlistentry>
32
30
</variablelist>
...
...
@@ -36,7 +34,7 @@
36
34
<refsect1 role="returnvalues">
37
35
&reftitle.returnvalues;
38
36
<para>
39
-
An <type>integer</type> value of <parameter>gmpnumber</parameter>.
37
+
The <type>int</type> value of <parameter>num</parameter>.
40
38
</para>
41
39
</refsect1>
42
40

...
...
@@ -76,14 +74,13 @@ echo gmp_strval("2147483648") . "\n";
76
74
<warning>
77
75
<simpara>
78
76
This function returns a useful result only if the number actually
79
-
fits the PHP integer (i.e., signed long type). If you want just
80
-
to print the GMP number, use <function>gmp_strval</function>.
77
+
fits the PHP integer (i.e., signed long type). To simply print the GMP
78
+
number, use <function>gmp_strval</function>.
81
79
</simpara>
82
80
</warning>
83
81
</refsect1>
84
82

85
83
</refentry>
86
-

87
84
<!-- Keep this comment at the end of the file
88
85
Local variables:
89
86
mode: sgml
90
87