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 the decimal system). For example, the binary number 11.01 thus means: For a total of 3.25 decimal. All dyadic rational numbers formula_16 have a "terminating" binary numeral—the binary representation has a finite number of terms after the radix point. Other rational numbers have binary representation, but instead of terminating, they "recur", with a finite sequence of digits repeating indefinitely. For instance The phenomenon that the binary representation of any rational is either terminating or recurring also occurs in other radix-based numeral systems. See, for instance, the explanation in decimal. Another similarity is the existence of alternative representations for any terminating