Binary to Decimal Conversion Problem

We are struggling to work out why you need one. The compiler converts all decimal values to binary anyway.

Perhaps if you posted your full code (the one you posted has no mention of any I2C or whatnot), and also explained what you are trying to do, i.e. where this weird decimal representation of binary comes from, we might be able to help.