I need some help converting the fractional (right side of the decimal) to base 10.<br>I have this but it doesn&#39;t work<br><br>mynum = raw_input(&quot;Please enter a number: &quot;)<br>myint, myfrac = mynum.split(&quot;.&quot;)<br>

base = raw_input(&quot;Please enter the base you would like to convert to: &quot;)<br>base = int(base)<br>mydecfrac = 0<br>fraclen = len(myfrac) - 1<br><br>for digit in range(len(myfrac) -1, -1, -1):<br>    mydecfrac = mydecfrac + int(myfrac[digit])<br>

    mydecfrac = mydecfrac / base<br><br><br><br>