title: Logarithm base 2 in C language
body: <p>Please, can someone help me with how to calculate a simple log2 in C? I tried with this code, but it does not work:</p>
  
  <pre><code>printf( "log( %f ) = %f\n", x, log2(x) );
  </code></pre>