Divide the decimal number by 2. Then divide each resulting quotient by 2 until there is a 0
quotient. The remainders generated by each division form the binary number. The first
remainder is the LSB (least significant bit). Example, to convert 12 to binary: