Limits of dec* and *dec (reported by Cornelia Boenigk)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@166515 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2004-08-16 13:51:54 +00:00
parent 700f758ccb
commit 319ba4e188
5 changed files with 16 additions and 10 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.bindec">
<refnamediv>
@ -9,7 +9,7 @@
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>int</type><methodname>bindec</methodname>
<type>number</type><methodname>bindec</methodname>
<methodparam><type>string</type><parameter>binary_string</parameter></methodparam>
</methodsynopsis>
<para>
@ -20,6 +20,8 @@
<function>bindec</function> converts a binary number to an
<type>integer</type>. The largest number that can be converted is
31 bits of 1's or 2147483647 in decimal.
Since PHP 4.1.0, this function can convert also higher numbers and returns
<type>float</type> in that case.
</para>
<para>
<example>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.dechex">
<refnamediv>
@ -15,7 +15,7 @@
<para>
Returns a string containing a hexadecimal representation of the
given <parameter>number</parameter> argument. The largest number that can
be converted is 2147483647 in decimal resulting to "7fffffff".
be converted is 4294967295 in decimal resulting to "ffffffff".
</para>
<para>
<example>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.8 -->
<refentry id="function.decoct">
<refnamediv>
@ -15,7 +15,7 @@
<para>
Returns a string containing an octal representation of the given
<parameter>number</parameter> argument. The largest number that can be converted is
2147483647 in decimal resulting to "17777777777".
4294967295 in decimal resulting to "37777777777".
</para>
<para>
<example>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.16 -->
<refentry id="function.hexdec">
<refnamediv>
@ -9,7 +9,7 @@
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>int</type><methodname>hexdec</methodname>
<type>number</type><methodname>hexdec</methodname>
<methodparam><type>string</type><parameter>hex_string</parameter></methodparam>
</methodsynopsis>
<para>
@ -18,6 +18,8 @@
<function>hexdec</function> converts a hexadecimal string to a
decimal number. The largest number that can be converted is
7fffffff or 2147483647 in decimal.
Since PHP 4.1.0, this function can convert also higher numbers and returns
<type>float</type> in that case.
</para>
<para>
<function>hexdec</function> will ignore any non-hexadecimal

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.octdec">
<refnamediv>
@ -9,7 +9,7 @@
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>int</type><methodname>octdec</methodname>
<type>number</type><methodname>octdec</methodname>
<methodparam><type>string</type><parameter>octal_string</parameter></methodparam>
</methodsynopsis>
<para>
@ -17,6 +17,8 @@
represented by the <parameter>octal_string</parameter> argument.
The largest number that can be converted is 17777777777 or 2147483647 in
decimal.
Since PHP 4.1.0, this function can convert also higher numbers and returns
<type>float</type> in that case.
</para>
<para>
<example>