Binary number double the number to be converted, record if the result is at least 1, and then throw away the integer part. For example, formula_10, in binary, is: Thus the repeating decimal fraction 0... is equivalent to the repeating binary fraction 0... . Or for example, 0.1, in binary, is: This is also a repeating binary fraction 0.0... . It may come as a surprise that terminating decimal fractions can have repeating expansions in binary. It is for this reason that many are surprised to discover that 0.1 + ... + 0.1, (10 additions) differs from 1 in floating point arithmetic.
Binary number only two possible outcomes of each partial multiplication: For example, the binary numbers 1011 and 1010 are multiplied as follows: Binary numbers can also be multiplied with bits after a binary point: See also Booth's multiplication algorithm. The binary multiplication table is the same as the truth table of the logical conjunction operation formula_6. Long division in binary is again similar to its decimal counterpart. In the example below, the divisor is 101, or 5 decimal, while the dividend is 11011, or 27 decimal. The procedure is the same as that of decimal long division; here, the divisor 101 goes