rizalafande
Junior Member level 2
decimal to binary in c
hi,
I have successfully converting the decimal to binary numbers in C (using char) but my intention is to make sure that it will convert to 12-bits binary numbers. For example, if decimal value is 10, then binary should be 000000000110 instead of only 110. Can anyone helps?
hi,
I have successfully converting the decimal to binary numbers in C (using char) but my intention is to make sure that it will convert to 12-bits binary numbers. For example, if decimal value is 10, then binary should be 000000000110 instead of only 110. Can anyone helps?