title: Conversion from binary string to decimal?
body: <p>In the following code I am converting a binary to decimal and then printing the character corresponding to it.  </p>
  
  <pre><code>void convertToChar(int binaryChar[],int length)
  {
  int multiplier = 0;
  int i;
  int sum = 0;
  for(i=length;i&gt;=0;i++)
  {
      sum = sum + (binaryChar[i]*pow(2,multiplier));
      multiplier = multiplier + 1;
  }
  printf("\nThe character is: %c",sum);
  }
  </code></pre>
  
  <p>The problem is in the line <code>sum = sum + (binaryChar[i]*pow(2,multiplier));</code> .It throws the error:  <code>warning: converting to</code>int' from <code>double'</code>.Please help!</p>