cvs: phpdoc-pl /reference/math/functions bindec.xml
| From: | Leszek Krupinski | Date: | Wed, 15 Mar 2006 01:02:48 +0000 |
| Subject: | cvs: phpdoc-pl /reference/math/functions bindec.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-725@lists.php.net to get a copy of this message | ||
leszek Wed Mar 15 01:02:48 2006 UTC
Modified files:
/phpdoc-pl/reference/math/functions bindec.xml
Log:
[adi] update to rev. 1.8
http://cvs.php.net/viewcvs.cgi/phpdoc-pl/reference/math/functions/bindec.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc-pl/reference/math/functions/bindec.xml
diff -u phpdoc-pl/reference/math/functions/bindec.xml:1.6
phpdoc-pl/reference/math/functions/bindec.xml:1.7
--- phpdoc-pl/reference/math/functions/bindec.xml:1.6 Thu Jun 20 01:43:40 2002
+++ phpdoc-pl/reference/math/functions/bindec.xml Wed Mar 15 01:02:47 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.3 Maintainer: qrak Status: ready -->
-<!-- $Revision: 1.6 $ -->
+<!-- EN-Revision: 1.8 Maintainer: qrak Status: ready -->
+<!-- $Revision: 1.7 $ -->
<refentry id="function.bindec">
<refnamediv>
<refname>bindec</refname>
@@ -9,7 +9,7 @@
<refsect1>
<title>Opis</title>
<methodsynopsis>
- <type>int</type><methodname>bindec</methodname>
+ <type>number</type><methodname>bindec</methodname>
<methodparam><type>string</type><parameter>liczba_dwójkowa</parameter></methodparam>
</methodsynopsis>
<para>
@@ -20,9 +20,37 @@
<function>bindec</function> konwertuje liczby dwójkowe do liczb
ca³kowitych. Najwiêksz± konwertowan± liczb± jest 31 bitów jedynek, czyli
2 147 483 647 dziesiêtnie.
+ Od PHP 4.1.0, funkcja ta potrafi konwertowaæ wiêksze liczby.
+ W takim przypadku zwraca <type>float</type>.
</para>
<para>
- Patrz tak¿e: <function>decbin</function>.
+ <example>
+ <title><function>bindec</function> przyk³ad</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+echo bindec('110011') . "\n";
+echo bindec('000110011') . "\n";
+
+echo bindec('111');
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+51
+51
+7
+]]>
+ </screen>
+ </example>
+ </para>
+ <para>
+ Patrz tak¿e: <function>decbin</function>,
+ <function>octdec</function>,
+ <function>hexdec</function> i
+ <function>base_convert</function>.
</para>
</refsect1>
</refentry>