Ada kesalahan di dalam gadget ini

Selasa, 13 Desember 2011

decimal to binary

Binary is the language of the machine where the characters can be read only 0 and 1,
binary each group has 8 bits or 1 byte
the formulation is essentially the powers of two numbers
how to quickly convert from decimal to binary
======> Write the numbers as shown below
======> 128 64 32 16 8 4 2 1

example problems:

change the decimal 50 to binary

completion: cri figure approaching / at 50 in number who had written earlier
but not more than 50, (of course the answer is 32) and the remainder in the search for more that most akin / similar
but should not be more than that number (the remaining 18 then we charge 16)
then rest again sought the closest / same (the remaining two, and number 2 is on the line numbers in the first powers of 2 which we write)
then we just charge 2, (and so on until the numbers on the matter no longer be left over)

Then the answer is we have 3 digits, then replace the numbers 32,16,2 our answer to number 1 and the rest of the numbers who are not in use at the
powers of two numbers is the change to the number 0, as follows
128 64 32 16 8 4 2 1
0      0   1   1  0 0 1 0 
then the binary representation of decimal 50 is 00110010:)

Tidak ada komentar:

Posting Komentar