Files
doc-fr/reference/math/functions/decbin.xml
T
Yannick Torres 6c91161986 sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@187125 c90b9560-bf6c-de11-be94-00142212c4b1
2005-05-27 22:53:33 +00:00

70 lines
1.7 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.10 $ -->
<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready -->
<refentry id="function.decbin">
<refnamediv>
<refname>decbin</refname>
<refpurpose>Convertit de décimal en binaire</refpurpose>
</refnamediv>
<refsect1>
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>decbin</methodname>
<methodparam><type>int</type><parameter>number</parameter></methodparam>
</methodsynopsis>
<para>
<function>decbin</function> retourne une chaîne contenant
la représentation binaire de l'entier donné en argument.
Le plus grand nombre pouvant être converti est 2147483647
en décimal, ce qui donne une série de 31 uns (1).
</para>
<para>
<example>
<title>Exemple avec <function>decbin</function></title>
<programlisting role="php">
<![CDATA[
<?php
echo decbin(12) . "\n";
echo decbin(26);
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
1100
11010
]]>
</screen>
</example>
</para>
<para>
Voir aussi
<function>bindec</function>,
<function>decoct</function>,
<function>dechex</function> et
<function>base_convert</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->