Binary Math with Conversions
Plus Binary Octal Hexadecimal Decimal Minus Two Divide
00000000 0 0 0
function leftShift(bin) {
    let dec = parseInt(bin, 2);
    let doubled = dec*2;
}
while  </script>

  if (n > 0) {  // PLUS
    decimal = MAX === decimal ? 0 : decimal += n; // OVERFLOW or PLUS
    } else  {     // MINUS
    decimal = 0 === decimal ? MAX : decimal += n; // OVERFLOW or MINUS
    }
    // convert the result back to binary