Binary to Decimal Conversion Problem

byte output = 0b100110

Note the 0b to tell the compiler it is a binary literal.