vrana Mon Aug 16 09:51:54 2004 EDT
Modified files: /phpdoc/en/reference/math/functions bindec.xml dechex.xml decoct.xml hexdec.xml octdec.xml Log: Limits of dec* and *dec (reported by Cornelia Boenigk) http://cvs.php.net/diff.php/phpdoc/en/reference/math/functions/bindec.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/math/functions/bindec.xml diff -u phpdoc/en/reference/math/functions/bindec.xml:1.5 phpdoc/en/reference/math/functions/bindec.xml:1.6 --- phpdoc/en/reference/math/functions/bindec.xml:1.5 Wed Dec 17 11:02:19 2003 +++ phpdoc/en/reference/math/functions/bindec.xml Mon Aug 16 09:51:54 2004 @@ -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> http://cvs.php.net/diff.php/phpdoc/en/reference/math/functions/dechex.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/math/functions/dechex.xml diff -u phpdoc/en/reference/math/functions/dechex.xml:1.5 phpdoc/en/reference/math/functions/dechex.xml:1.6 --- phpdoc/en/reference/math/functions/dechex.xml:1.5 Wed Dec 17 10:49:26 2003 +++ phpdoc/en/reference/math/functions/dechex.xml Mon Aug 16 09:51:54 2004 @@ -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> http://cvs.php.net/diff.php/phpdoc/en/reference/math/functions/decoct.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/math/functions/decoct.xml diff -u phpdoc/en/reference/math/functions/decoct.xml:1.5 phpdoc/en/reference/math/functions/decoct.xml:1.6 --- phpdoc/en/reference/math/functions/decoct.xml:1.5 Wed Dec 17 11:09:51 2003 +++ phpdoc/en/reference/math/functions/decoct.xml Mon Aug 16 09:51:54 2004 @@ -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> http://cvs.php.net/diff.php/phpdoc/en/reference/math/functions/hexdec.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc/en/reference/math/functions/hexdec.xml diff -u phpdoc/en/reference/math/functions/hexdec.xml:1.7 phpdoc/en/reference/math/functions/hexdec.xml:1.8 --- phpdoc/en/reference/math/functions/hexdec.xml:1.7 Thu Feb 26 09:03:13 2004 +++ phpdoc/en/reference/math/functions/hexdec.xml Mon Aug 16 09:51:54 2004 @@ -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 http://cvs.php.net/diff.php/phpdoc/en/reference/math/functions/octdec.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/math/functions/octdec.xml diff -u phpdoc/en/reference/math/functions/octdec.xml:1.5 phpdoc/en/reference/math/functions/octdec.xml:1.6 --- phpdoc/en/reference/math/functions/octdec.xml:1.5 Wed Mar 10 09:39:13 2004 +++ phpdoc/en/reference/math/functions/octdec.xml Mon Aug 16 09:51:54 2004 @@ -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>