Binary to Decimal Conversion Problem

Yes I know. I replied AWOL.

I need a binary-to-decimal convertor. That's all. The configuration is made trough 0's and 1's in Arduino. Then the configuration must be printed to i2c as a decimal value. If it would have existed a Serial.print(DEC) for I2C I wouldn't have bothered now doing this.