I can get a binary representation of characters as follows:

BaseForm[ToCharacterCode["A"], 2]

enter image description here

However, that produces a weird binary code object that might be nice to look at, but not very practical to work with. What I would like to extract from this is a list of digits:


Is there a quick way to do that?



IntegerDigits[ToCharacterCode["A"], 2]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.