Topic summary
Integer power

Extracted from the Wikipedia article Exponentiation.
Powers of two
Integer powers of 2 are important in computer science. The positive integer powers 2 give the number of possible values for an n-bit integer binary number; for example, a byte may take 2 = 256 different values. The binary number system expresses any number as a sum of powers of 2, and denotes it as a sequence of 0 and 1, separated by a binary point, where 1 indicates a power of 2 that appears in the sum; the exponent is determined by the place of this 1: the nonnegative exponents are the rank of the 1 on the left of the point (starting from 0), and the negative exponents are determined by the rank on the right of the point.