reference/gmp/functions/gmp-strval.xml
43130349a3f4681a2039e7e27fb56082981cdc13
...
...
@@ -1,6 +1,6 @@
1
-
<?xml version="1.0" encoding="iso-8859-1"?>
1
+
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.gmp-strval">
3
+
<refentry xml:id="function.gmp-strval" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>gmp_strval</refname>
6
6
<refpurpose>Convert GMP number to string</refpurpose>
...
...
@@ -10,8 +10,8 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>gmp_strval</methodname>
13
-
<methodparam><type>resource</type><parameter>gmpnumber</parameter></methodparam>
14
-
<methodparam choice="opt"><type>int</type><parameter>base</parameter></methodparam>
13
+
<methodparam><type class="union"><type>GMP</type><type>int</type><type>string</type></type><parameter>num</parameter></methodparam>
14
+
<methodparam choice="opt"><type>int</type><parameter>base</parameter><initializer>10</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Convert GMP number to string representation in base
...
...
@@ -24,7 +24,7 @@
24
24
<para>
25
25
<variablelist>
26
26
<varlistentry>
27
-
<term><parameter>gmpnumber</parameter></term>
27
+
<term><parameter>num</parameter></term>
28
28
<listitem>
29
29
<para>
30
30
The GMP number that will be converted to a string.
...
...
@@ -37,7 +37,7 @@
37
37
<listitem>
38
38
<para>
39
39
The base of the returned number. The default base is 10.
40
-
Allowed values for the base are from 2 to 36.
40
+
Allowed values for the base are from 2 to 62 and -2 to -36.
41
41
</para>
42
42
</listitem>
43
43
</varlistentry>
...
...
@@ -69,7 +69,6 @@ printf("Decimal: %s, 36-based: %s", gmp_strval($a), gmp_strval($a,36));
69
69
</para>
70
70
</refsect1>
71
71
</refentry>
72
-

73
72
<!-- Keep this comment at the end of the file
74
73
Local variables:
75
74
mode: sgml
76
75