Is there an easy way to convert a binary number to a decimal number? I&#039;ve come up with something that works, but I&#039;m sure there&#039;s a better, more efficient way to do it...<BR><BR><BR>binary = "11001010110100000101110"<BR>y = 0<BR>for x = len(binary) to 1 step -1<BR> if mid(binary,x,1) = 1 then<BR> decimal = decimal + (2^y)<BR> end if<BR> y = y + 1<BR>next<BR>response.write decimal<BR>