**
<< Previous page TOC INDEX Next
page >>**

## “Little Endian” Formula for Two’s-Complement, Integer Fixed-Point Numbers

The formula of the preceding section can be considered “big endian” because the bits are labeled “left to right” in the word as it is normally visualized. That is, is the

mostsignificant bit instead of the least significant bit. The “little endian” convention numbers bits in order of theirsignificanceinstead.For the “little-endian” formula, we simply reverse the bits in the previous formula:

The binary word is now written

The actual bits in the word are visualized the same in both big and little endian labelings. For example, in the three-bit case, a decimal 3 is still a binary and a decimal -4 is still a binary . Only the bit-symbol subscripts are different: vs. .Note that this representation extends to any “base” (currently 2). For example, positive decimal integers can be expanded as

and an -digit integer is written as . This type of “positional notation” was a major “breakthrough invention” in ancient times that greatly facilitated the handling of large numbers. (Have you ever tried working extensively with Roman numerals?)