<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.math.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.decbin.php',
    1 => 'decbin',
    2 => 'Decimal to binary',
  ),
  'up' => 
  array (
    0 => 'ref.math.php',
    1 => 'Math İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.cosh.php',
    1 => 'cosh',
  ),
  'next' => 
  array (
    0 => 'function.dechex.php',
    1 => 'dechex',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/math/functions/decbin.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.decbin" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">decbin</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">decbin</span> &mdash; <span class="dc-title">Decimal to binary</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.decbin-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>decbin</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$num</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Returns a string containing a binary representation of the given
   <code class="parameter">num</code> argument.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.decbin-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">num</code></dt>
     <dd>
      <p class="para">
       Decimal value to convert
      </p>

      <table class="doctable table">
       <caption><strong>Range of inputs on 32-bit machines</strong></caption>
       
        <col />
        <col />
        <col />
        <thead>
         <tr>
          <th>positive <code class="parameter">num</code></th>
          <th>negative <code class="parameter">num</code></th>
          <th>return value</th>
         </tr>

        </thead>

        <tbody class="tbody">
         <tr>
          <td>0</td>
          <td class="empty">&nbsp;</td>
          <td>0</td>
         </tr>

         <tr>
          <td>1</td>
          <td class="empty">&nbsp;</td>
          <td>1</td>
         </tr>

         <tr>
          <td>2</td>
          <td class="empty">&nbsp;</td>
          <td>10</td>
         </tr>

         <tr>
          <td colspan="3">... normal progression ...</td>
         </tr>

         <tr>
          <td>2147483646</td>
          <td class="empty">&nbsp;</td>
          <td>1111111111111111111111111111110</td>
         </tr>

         <tr>
          <td>2147483647 (largest signed integer)</td>
          <td class="empty">&nbsp;</td>
          <td>1111111111111111111111111111111 (31 1&#039;s)</td>
         </tr>

         <tr>
          <td>2147483648</td>
          <td>-2147483648</td>
          <td>10000000000000000000000000000000</td>
         </tr>

         <tr>
          <td colspan="3">... normal progression ...</td>
         </tr>

         <tr>
          <td>4294967294</td>
          <td>-2</td>
          <td>11111111111111111111111111111110</td>
         </tr>

         <tr>
          <td>4294967295 (largest unsigned integer)</td>
          <td>-1</td>
          <td>11111111111111111111111111111111 (32 1&#039;s)</td>
         </tr>

        </tbody>
       
      </table>


      <table class="doctable table">
       <caption><strong>Range of inputs on 64-bit machines</strong></caption>
       
        <col />
        <col />
        <col />
        <thead>
         <tr>
          <th>positive <code class="parameter">num</code></th>
          <th>negative <code class="parameter">num</code></th>
          <th>return value</th>
         </tr>

        </thead>

        <tbody class="tbody">
         <tr>
          <td>0</td>
          <td class="empty">&nbsp;</td>
          <td>0</td>
         </tr>

         <tr>
          <td>1</td>
          <td class="empty">&nbsp;</td>
          <td>1</td>
         </tr>

         <tr>
          <td>2</td>
          <td class="empty">&nbsp;</td>
          <td>10</td>
         </tr>

         <tr>
          <td colspan="3">... normal progression ...</td>
         </tr>

         <tr>
          <td>9223372036854775806</td>
          <td class="empty">&nbsp;</td>
          <td>111111111111111111111111111111111111111111111111111111111111110</td>
         </tr>

         <tr>
          <td>9223372036854775807 (largest signed integer)</td>
          <td class="empty">&nbsp;</td>
          <td>111111111111111111111111111111111111111111111111111111111111111 (63 1&#039;s)</td>
         </tr>

         <tr>
          <td class="empty">&nbsp;</td>
          <td>-9223372036854775808</td>
          <td>1000000000000000000000000000000000000000000000000000000000000000</td>
         </tr>

         <tr>
          <td colspan="3">... normal progression ...</td>
         </tr>

         <tr>
          <td class="empty">&nbsp;</td>
          <td>-2</td>
          <td>1111111111111111111111111111111111111111111111111111111111111110</td>
         </tr>

         <tr>
          <td class="empty">&nbsp;</td>
          <td>-1</td>
          <td>1111111111111111111111111111111111111111111111111111111111111111 (64 1&#039;s)</td>
         </tr>

        </tbody>
       
      </table>


     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.decbin-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Binary string representation of <code class="parameter">num</code>
  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-function.decbin-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 <span class="function"><strong>decbin()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">decbin</span><span style="color: #007700">(</span><span style="color: #0000BB">12</span><span style="color: #007700">) . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />echo </span><span style="color: #0000BB">decbin</span><span style="color: #007700">(</span><span style="color: #0000BB">26</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
Yukarıdaki örneğin çıktısı:</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">1100
11010</pre>
</div>
    </div>
   </div>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.decbin-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.bindec.php" class="function" rel="rdfs-seeAlso">bindec()</a> - Binary to decimal</span></li>
    <li><span class="function"><a href="function.decoct.php" class="function" rel="rdfs-seeAlso">decoct()</a> - Decimal to octal</span></li>
    <li><span class="function"><a href="function.dechex.php" class="function" rel="rdfs-seeAlso">dechex()</a> - Decimal to hexadecimal</span></li>
    <li><span class="function"><a href="function.base-convert.php" class="function" rel="rdfs-seeAlso">base_convert()</a> - Convert a number between arbitrary bases</span></li>
    <li>
     <span class="function"><a href="function.printf.php" class="function" rel="rdfs-seeAlso">printf()</a> - Bi&ccedil;emli bir dizge &ccedil;ıktılar</span>, using <code class="literal">%b</code>,
     <code class="literal">%032b</code> or <code class="literal">%064b</code> as the format
    </li>
    <li>
     <span class="function"><a href="function.sprintf.php" class="function" rel="rdfs-seeAlso">sprintf()</a> - Bi&ccedil;emli bir dizge d&ouml;nd&uuml;r&uuml;r</span>, using <code class="literal">%b</code>,
     <code class="literal">%032b</code> or <code class="literal">%064b</code> as the format
    </li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>