display("#displayCLOSE") display("#displayON") clearParameter() //examples //string = "00000111010110111100110100010101" //string = "111010110111100110100010101" //string = "1110010" string = "1010011010" for i = 1 to len(string) binContainer[i] = subStr(string,i,i).asInteger display(i, "- ", binContainer[i]) next i display("------------------------") // Double Dabble method found at internet // https://www.binaryhexconverter.com/binary-to-decimal-converter“ for i = 1 to len(string) // display(i, "-", binContainer[i]) if i == 1 value = (i-1)*2+binContainer[i] else value = value*2+binContainer[i] endif next i display(string, " = ", value)