title: Base Conversion with a decimal point in C++
body: <p>I am struggling to come up with an algorithm in C++ that converts a number with a decimal point from a base to any other base. I have successfully been able to write a function that converts numbers without decimal points to any desired base. </p>
  
  <pre><code>double  getBase10 (string number, int CurrentBase){
      double converted =0;
      for (int i =0; i &lt; number.length(); i++){
          converted += pow(CurrentBase, -1 * (number.length() - i -1)) * getNumber(number[i]);
      }
      return double converted;
  }
  </code></pre>
  
  <p>This is the function I have so far as requested by Mooing Duck. </p>