


COM1100 -- Winter2000 -- Yuhong Yin
Decimal
number to binary number
nDivide the decimal number by 2.
nThe remainder is the binary
bit, beginning with
the least significant bit(LSB).
nContinue dividing by 2 until
you are left with 0,
and a remainder of either 1 or 0.
nThe Last remainder is the most significant bit(MSB) of
the binary number.
n