Binary to Decimal Conversion Problem

RobertEagle:
Still doesn't work. The same things. Everything looks very clear in the program, but it continues the same way.

Where are you getting this binary data from? If you're hardcoding it in, then use what Tom said:

void setup() {
  Serial.begin(9600);
  int output = 0b100110;
  Serial.println(output);
}