Converting integer to a bit representation
Posted
by bobber205
on Stack Overflow
See other posts from Stack Overflow
or by bobber205
Published on 2010-04-21T21:02:59Z
Indexed on
2010/04/22
1:03 UTC
Read the original article
Hit count: 314
How can I convert a integer to its bit representation. I want to take an integer and return a vector that has contains 1's and 0's of the integer's bit representation.
I'm having a heck of a time trying to do this myself so I thought I would ask to see if there was a built in library function that could help.
Thanks!
© Stack Overflow or respective owner