# Built in function to convert list of numbers into list of binary numbers [closed]

Does Mathematica have a build in way to convert a list of numbers into a list of binary numbers? If not how can this be accomplished?

## closed as off-topic by wxffles, Karsten 7., bbgodfrey, ubpdqn, Bob HanlonFeb 23 '15 at 3:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – wxffles, Karsten 7., bbgodfrey, ubpdqn, Bob Hanlon
If this question can be reworded to fit the rules in the help center, please edit the question.

• There's BaseForm and IntegerDigits. – wxffles Feb 22 '15 at 19:21
• I think you should explain more clearly what exactly you mean with "list of binary numbers". You probably want to explain what you want to do with such a list... – Albert Retey Feb 22 '15 at 20:04

list = RandomInteger[{0, 100}, 10]

{65, 84, 31, 23, 72, 64, 29, 78, 43, 87}

BaseForm[#, 2] & /@ list

IntegerDigits[#, 2] & /@ list

{{1, 0, 0, 0, 0, 0, 1}, {1, 0, 1, 0, 1, 0, 0}, {1, 1, 1, 1, 1}, {1, 0, 1, 1, 1}, {1, 0, 0, 1, 0, 0, 0}, {1, 0, 0, 0, 0, 0, 0}, {1, 1, 1, 0, 1}, {1, 0, 0, 1, 1, 1, 0}, {1, 0, 1, 0, 1, 1}, {1, 0, 1, 0, 1, 1, 1}}

FromDigits /@ %

{1000001, 1010100, 11111, 10111, 1001000, 1000000, 11101, 1001110, \ 101011, 1010111}

• BaseForm and IntegerDigits are both listable. – Karsten 7. Feb 22 '15 at 21:40
• @Karsten7. - Good point. – Bob Hanlon Feb 23 '15 at 1:02