iv class="docstring">
  <div class="discussion">
    <p>Convert an integer to an binary string</p>


  </div>
</div>
<div class="tags">
  
  <div class="examples">
    <p class="tag_title">Examples:</p>
    
      
      <pre class="example code"><code><span style="color:#00D">42</span>.to_bin <span style="color:#777"># =&gt; &quot;101010&quot;</span></code></pre>
    
  </div>

<p class="tag_title">Returns:</p>
<ul class="return">
  
    <li>
      
      
        <span class='type'>(<tt>String</tt>)</span