How to convert a decimal to 4bit binary in BASIC language?

Apr 22, 2006 1 Replies

I am using BASCOM AVR and I would like to ask.



How to convert a decimal to 4 bit binary digit.



For example.



Convert 7 to 0111 Convert 8 to 1000 Convert 9 to 1001



Thank you very much


Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required