Say I start with:
uint8_t x = 0x12;
For debugging purposes I want to "print" it in binary (using NSLog) so I see: 000010010.
Is there a way to do that in Objective-C? The closest I got is using %o format, which gives 22 and then manually translate that to binary.
Also what about uint16_t y = 0x1234; or uint32_t z = 0x12345678; ?