Okay im in an I.T. class in high school and I need help because I was absent.
I need help converting binary to decimal, using: subStr(), charAt(), string.length, string.indexOf(), powCount, math.Pow and or ceiling, floor, etc. heres what i have that does NOT work at all, im stuck.
on (release)
{
var mandy = intput.length
out.text = " ";
count = 0;
powCount = 0;
decTotal = 0;
for ( mandy = 0 ; x >= 0; powCount + 1)
{
if (mandy.charAt(x) == "1")
{
decTotal = decTotal + Math.pow(2, powCount);
powCount++
out.text += "The conversion is: " ;
}
else
{
powCount++
out.text += "The conversion is: " ;
}
}
}

