how to convert an integer to binary in Arduino?

For better confusion: 1110 = 1011

My brain is on strike, are there any other pairs of bases where you can write AB=BA ?