Binary number (source code)

= Binary number
{wiki}

= Binary representation
{synonym}

A <binary representation> writes a <number> in <positional notation> with <radix> two and <binary digits> zero and one. To the left of the binary point the <place values> are $1,2,4,8,\ldots$; to its right they are $1/2,1/4,1/8,\ldots$. For example,
$$
101.01_2=1\cdot2^2+0\cdot2+1+0\cdot2^{-1}+1\cdot2^{-2}=\frac{21}{4}.
$$
Binary notation changes the <numeral>, not the underlying <number>. The same value is $5.25$ in <decimal>. A finite <binary fraction> represents a <dyadic rational>, while an infinite <binary expansion> can represent any <real number> in the unit interval. Storing a finite <binary string> additionally requires an interpretation such as <unsigned interpretation> or <two's complement>.