Antoine_935
I'm looking for a table of translation : how to translate interger from 0 to 255 into binary code ==> 2 = 10 etc...
I really need this table, please help me !
I really need this table, please help me !

from integer to binaryAntoine_935
I'm looking for a table of translation : how to translate interger from 0 to 255 into binary code ==> 2 = 10 etc...
I really need this table, please help me ! izcool
Might this help ? Not sure.
http://nickciske.com/tools/binary.php  Mike. Grimboy
Why do you need a table, it would be a very simple thing to do programaticaly and a function propebly already exists somewhere.
kv
use decbin() function. Simple. Isn't it?
Antoine_935
@izcool : not it doesn't help me at the moment, but maybe I'll need it on some day. thank you !
@Grimboy : at the moment I wrote this message, I did not know the algoritm. but now I've found it, so I'll do what you said @kv : I would have used this function if it was in PHP, but it is in Python. kv
Hope this link helps
http://www.daniweb.com/code/snippet285.html XeononyX
Hello fellow coders! I stumbled upon this post and thought I would respond.. Translating Integer to Binary really isn't that tough by hand especially from 0 to 255
0 to 255 will always be 8 "bits" now just imagine these bits have values, and these values double at each new bit. (These numbers are so familiar to computer users because computers go by sets similar to these) 128 , 64 , 32 , 16 , 8 , 4 , 2 , 1 check digits left to right 1: a) is your number greater than or equal to it (b) if so add a 1 to that bit or a 0 if lower. (c) then subtract the value of the digit from your number if you put a one there. then repeat till done.
there you go! 169 = 10101001 dandelion
Please try the following code.
Defsanguje
..
Related topics
