A computer stores a whole number as its binary numeral in a fixed number of bits, filled out with zeros on the left. This lesson shows how numbers sit in bytes: bit positions and their place values, the most and least significant bits, numbers that take several bytes, the two orders in which those bytes can be stored, and why the same bits can stand for different numbers.
A fixed number of bits
Computers usually do arithmetic in binary notation, with 2 as the base.[1] Binary numerals, their place values 1, 2, 4, 8, … and how to read and write them are the subject of Number Bases lesson 1.2; conversions between bases are in Number Bases lesson 1.3. This lesson is about what changes when the numeral has to live in a machine.
On paper a numeral is as long as it needs to be. In a computer a number is stored in a unit whose size is fixed in advance. The instructions of the x86 family of processors, for example, work on data items of 1, 2, 4 or 8 bytes,[2] and programming languages give each kind of whole number a fixed size: in the language Java, for example, an int takes four bytes and a short two.[3] Standards fix sizes too. The Internet Protocol keeps the length of each packet in a field of 16 bits,[4] and each address in four octets, 32 bits;[5] the WebAssembly standard of the World Wide Web Consortium has integer types of 32 and 64 bits.[6] (A field may also be smaller than a byte, as in the layouts of lesson 1.2.)
Let n ≥ 1 and let x be a whole number with x ≤ 2ⁿ − 1. The n-bit pattern of x is its binary numeral with zeros written on the left until it has exactly n bits.[7] The number n is the width, or bit width.[8] The pattern of 0 is n zeros.
The zeros on the left change nothing: each stands for no group of its size, so the expansion of the pattern is the expansion of the numeral plus terms 0 × 2ᵏ. By the theorem “what k bits can name” of Number Bases lesson 1.2, the numbers whose binary numerals have at most n bits are exactly 0, 1, …, 2ⁿ − 1: these are the numbers that have an n-bit pattern, and different numbers have different patterns.
Write the 8-bit pattern of 75.
- The largest power of two not more than 75 is 64; 75 − 64 = 11. Then 8; 11 − 8 = 3. Then 2 and 1.
- 75 = 64 + 8 + 2 + 1 = 1001011₂, a numeral of 7 bits.
- One zero on the left makes 8 bits: 01001011.
Answer: 01001011. Check: 64 + 8 + 2 + 1 = 75; the extra 0 stands for no 128.
Someone pads the 7-bit numeral of 75 to 8 bits by writing the zero on the right: 10010110. What number does that store?
- 10010110₂ = 128 + 16 + 4 + 2 = 150.
- A 0 written at the end of a binary numeral moves every bit one place to the left and doubles the number (Number Bases lesson 1.2): 150 = 2 × 75.
Answer: 150, not 75. Padding zeros go on the left, where they stand for groups that are absent.
Which numbers do 00000000 and 11111111 store, and does 256 fit in a byte? What is the largest packet length a 16-bit field can record?
- 00000000 stores 0, and 11111111₂ = 2⁸ − 1 = 255 (Number Bases lesson 1.2).
- 256 = 2⁸ = 100000000₂ needs 9 bits, so it has no 8-bit pattern: it does not fit in a byte.
- A 16-bit field stores at most 2¹⁶ − 1. 2¹⁶ is sixteen factors 2, grouped as 2⁸ × 2⁸ = 256 × 256 = 65,536, so the largest value is 65,535.
Answer: 0 and 255; 256 does not fit in 8 bits; a 16-bit field holds at most 65,535. The Internet Protocol says exactly this of its 16-bit length field: it allows a packet (a “datagram”, in its words) to be up to 65,535 octets long.[4]
What happens when a result does not fit its width is the subject of this unit’s lesson “Overflow”; how many values n bits can hold, in general, is lesson 1.5, “How many values n bits can hold”; and stored whole numbers of every width are treated in “Unsigned integers”. Processors and their instructions are the subject of the unit Digital Logic & Computer Hardware, and the types of a programming language that of Programming Fundamentals.
Bit positions
The bits of a stored number are numbered by position. The rightmost bit has position 0, the next one position 1, and so on;[9] in an n-bit pattern the leftmost bit has position n − 1. By Number Bases lesson 1.2, the bit in position k is worth 2ᵏ.
In an n-bit pattern, the bit in position 0, the rightmost, is the least significant bit (LSB), and the bit in position n − 1, the leftmost, is the most significant bit (MSB).[9]
The two ends of the pattern tell two things about the number at a glance.
Let x be stored as an n-bit pattern, n ≥ 1.
- The least significant bit is 0 when x is even and 1 when x is odd.
- The most significant bit is 1 exactly when x ≥ 2ⁿ⁻¹.
(1) The last bit of a binary numeral is the remainder of x ÷ 2 (Number Bases lesson 1.2), and the zeros on the left do not change the last bit.
(2) By the theorem “what k bits can name”, the numbers below 2ⁿ⁻¹ are exactly those whose numerals have at most n − 1 bits, and their n-bit patterns begin with 0. The numbers from 2ⁿ⁻¹ to 2ⁿ − 1 need all n bits, so their patterns begin with 1.
A byte holds 10010110. Which positions hold 1, what number is stored, and what do its two end bits say?
- From the right, the positions are 0 to 7. The 1s are in positions 7, 4, 2 and 1.
- The number is 2⁷ + 2⁴ + 2² + 2¹ = 128 + 16 + 4 + 2 = 150.
- The LSB is 0, so the number is even; the MSB is 1, so the number is at least 2⁷ = 128.
Answer: positions 7, 4, 2 and 1; the number is 150, which is indeed even and at least 128.
Not every document numbers the bits from the right. The diagrams of the Internet Protocol label the leftmost bit 0 and call it the most significant bit.[11] Danny Cohen, writing about this in 1980, noted that one camp assigns position 0 to the least significant bit and the other to the most significant bit.[12] Which end is position 0 is a convention; a reader must check it in each document. This unit numbers the positions from the right, starting at 0.
Numbers that take several bytes
A number of 16 bits occupies two bytes. The bits in positions 15 to 8 form the high byte, and the bits in positions 7 to 0 the low byte. They are also called the most significant byte and the least significant byte, by analogy with the most and least significant bits.[13] Each byte, read on its own, names a number from 0 to 255.
Let x be a whole number from 0 to 65,535, and let H and L be the numbers named by the high and low bytes of its 16-bit pattern. Then x = 256 × H + L. So H is the quotient and L the remainder when x is divided by 256.
A 1 in position 8 + j of the pattern is worth 2⁸⁺ʲ. That power is a product of 8 + j factors 2; grouping the first eight gives 2⁸ × 2ʲ = 256 × 2ʲ. In the high byte the same bit is in position j, worth 2ʲ. So every 1 of the high byte is worth 256 times as much in the whole pattern as in the byte alone, and by the distributive property the high byte contributes 256 × H. The low byte’s bits keep their places and contribute L. Since 0 ≤ L ≤ 255 < 256, the equation x = 256 × H + L is the division of x by 256 with quotient H and remainder L (the division algorithm).
The same holds for more bytes: the bytes of a number are its digits in base 256. A 32-bit number with bytes B₃, B₂, B₁, B₀, from the most significant to the least, is B₃ × 256³ + B₂ × 256² + B₁ × 256 + B₀, the positional notation of Number Bases lesson 1.1 with b = 256 and the 256 digits 0 to 255.
Find the high and low bytes of 1,000 and its 16-bit pattern.
- 1,000 ÷ 256: 3 × 256 = 768 and 1,000 − 768 = 232, so H = 3 and L = 232.
- 3 = 00000011 and 232 = 128 + 64 + 32 + 8 = 11101000.
- The pattern is the high byte followed by the low byte: 0000001111101000.
Answer: high byte 3, low byte 232, pattern 0000001111101000. Check: 512 + 256 + 128 + 64 + 32 + 8 = 1,000.
Find the 16-bit pattern of 50,000.
- 195 × 256 = 49,920 and 50,000 − 49,920 = 80, with 80 < 256: H = 195 and L = 80.
- 195 = 128 + 64 + 2 + 1 = 11000011 and 80 = 64 + 16 = 01010000.
- The pattern: 1100001101010000.
Answer: 1100001101010000. Check by place values: 32,768 + 16,384 + 512 + 256 + 64 + 16 = 50,000. The MSB is 1, as Proposition 1 requires, because 50,000 ≥ 2¹⁵ = 32,768.
People often write multi-byte numbers one byte at a time. Internet addresses are the best-known case: the 32-bit address is divided into four 8-bit fields, the value of each field is written as a decimal number, and the fields are separated by periods. This is called the dotted decimal notation.[14]
Write the 32 bits of the address 203.0.113.45.
- 203 = 128 + 64 + 8 + 2 + 1 = 11001011.
- 0 = 00000000, and 113 = 64 + 32 + 16 + 1 = 01110001.
- 45 = 32 + 8 + 4 + 1 = 00101101.
Answer: 11001011 00000000 01110001 00101101 (spaces between the bytes only for reading). Each decimal field is one byte, a digit of base 256.
Byte order in memory
A computer’s memory is a long row of bytes, and the byte is the smallest unit that has an address of its own (lesson 1.2).[16] The WebAssembly standard, for example, describes its memory as a contiguous array of raw bytes, from which values can be loaded and to which they can be stored at any byte address,[17] where an address is the zero-based index of a byte, so that the first byte has address 0.[18] A number of several bytes occupies consecutive addresses. Which of its bytes comes first is a choice, and both choices are in use.
In big-endian order the most significant byte of a number comes first, at the lowest address; the reverse convention, the least significant byte first, is little-endian order.[13]
The Internet uses big-endian order: when a quantity of several octets is transmitted, its most significant octet is transmitted first.[19] WebAssembly reads and writes all values in memory in little-endian order.[20] A program that moves numbers between the two must reverse their bytes.
The names come from a note of 1980 by Danny Cohen, which called the followers of the two orders the Little-Endians and the Big-Endians.[21] Cohen took them from Jonathan Swift’s Gulliver’s Travels, in which the people of Lilliput go to war over whether eggs should be broken at the little end or the big end.[22]
Store 50,000 at the addresses 2,000 and 2,001, first in big-endian and then in little-endian order.
- From the last section: H = 195 = 11000011 and L = 80 = 01010000.
- Big-endian: address 2,000 holds the high byte 195, address 2,001 the low byte 80.
- Little-endian: address 2,000 holds the low byte 80, address 2,001 the high byte 195.
Answer: big-endian 195, 80; little-endian 80, 195. Either way, 256 × 195 + 80 = 50,000.
A little-endian machine stores 1,000 at the addresses 500 and 501. A program on another machine reads the two bytes as big-endian. What number does it get?
- Little-endian: address 500 holds the low byte 232, address 501 the high byte 3.
- Read as big-endian, the first byte, 232, is taken as the high byte and 3 as the low byte.
- 256 × 232 + 3 = 59,392 + 3 = 59,395.
Answer: 59,395 instead of 1,000. The bytes are right; only the agreement about their order was broken.
Which 16-bit numbers are stored the same way in both orders?
- The two orders give the same two bytes exactly when the high byte equals the low byte: H = L.
- Then x = 256 × H + H = 257 × H, for H = 0, 1, …, 255.
Answer: the multiples 257 × H, from 0 to 257 × 255 = 65,535: for example 0, 257 and 65,535. A number of a single byte has no byte order at all.
Bytes in memory
- Round
- 1
- Score
- 0
- Streak
- 0
Store the number 28,053 as a 16-bit number at the addresses 2,188 and 2,189, in big-endian order. Set the bits of the two bytes.
Big-endian: the most significant byte is stored first, at the lower address.
address 2,188
address 2,189
Above the bits: the place value of each bit within its byte.
The same bits, different numbers
Bits do not say what they mean. A series of bits has no meaning by itself: to read it as a number one must know how it was written.[26] The WebAssembly standard says the same of its integer types: they are not inherently signed or unsigned, and their interpretation is determined by the operations that use them.[6] The width and the byte order are part of that agreement.
The addresses 0 and 1 hold 00000001 and 00000010. What numbers can these two bytes store?
- As two separate 8-bit numbers: 1 and 2.
- As one 16-bit number in big-endian order: high byte 1, low byte 2, so 256 × 1 + 2 = 258.
- As one 16-bit number in little-endian order: low byte 1, high byte 2, so 256 × 2 + 1 = 513.
Answer: 1 and 2, or 258, or 513. The bits are the same in every case; the reading is not.
The same bits can also stand for a negative number, a fraction or a letter. Those readings are taught in this unit’s lessons “Negative integers and two’s complement”, “Fixed-point numbers”, “Floating-point numbers” and “Characters and ASCII”. A shorter way to write long bit patterns, two symbols per byte, is the next lesson, “Hexadecimal notation”.
The explorer below shows several readings at once: the sixteen bits as one number, its two bytes, how each byte order lays them out in memory, and the number a reader gets who swaps the two bytes. The shift buttons move all sixteen bits one place. To the left, a 0 comes in on the right and the number doubles, unless a 1 falls off the left end, because the width is fixed (compare Theorem 1 of lesson 1.1: sixteen bits cannot name more than 2¹⁶ numbers). To the right, a 0 comes in on the left and the bit that drops out is the remainder of the division by 2 (Number Bases lesson 1.2).
Inside a 16-bit number
Tap the bits to change the number, or shift all the bits one place. Watch the two bytes and how each byte order stores them.
high byte: positions 15 to 8 · names 3
low byte: positions 7 to 0 · names 232
Above each bit: its position. The bit in position k is worth 2ᵏ.
Value: 1,000 = 512 + 256 + 128 + 64 + 32 + 8
High byte 3, low byte 232: 256 × 3 + 232 = 1,000.
Read with the two bytes swapped, as a reader using the other byte order would: 256 × 232 + 3 = 59,395.
Big-endian in memory
address 0: 00000011 = 3
address 1: 11101000 = 232
Little-endian in memory
address 0: 11101000 = 232
address 1: 00000011 = 3
Exercises
Write the 8-bit patterns of (a) 200 and (b) 5. (c) Does 300 have an 8-bit pattern?
▸ Show solution
(a) 200 = 128 + 64 + 8 = 11001000. It already has 8 bits.
(b) 5 = 101₂; five zeros on the left: 00000101.
(c) 300 = 256 + 32 + 8 + 4 = 100101100₂ has 9 bits: it does not fit in a byte, since 300 > 255.
Which numbers have an 8-bit pattern whose most and least significant bits are both 1? How many are there?
▸ Show solution
The MSB is 1 exactly when x ≥ 2⁷ = 128 (Proposition 1), and the LSB is 1 exactly when x is odd. So the odd numbers from 129 to 255: 129, 131, …, 255. There are (255 − 129) ÷ 2 + 1 = 64 of them.
Store 40,000 as a 16-bit number at the addresses 300 and 301 in little-endian order. Give each byte in bits.
▸ Show solution
156 × 256 = 39,936 and 40,000 − 39,936 = 64, so H = 156 = 10011100 and L = 64 = 01000000.
Little-endian at 300 and 301: address 300 holds 64 = 01000000, address 301 holds 156 = 10011100.
The addresses 10 and 11 hold 00000001 and 00101100. Which 16-bit number do they store in big-endian order, and which in little-endian order?
▸ Show solution
The bytes name 1 and 44 (32 + 8 + 4).
Big-endian: 256 × 1 + 44 = 300. Little-endian: 256 × 44 + 1 = 11,264 + 1 = 11,265.
What is the largest number a 32-bit unit can store? Check your answer by writing it as four bytes in base 256.
▸ Show solution
2³² = 2¹⁶ × 2¹⁶ = 65,536 × 65,536 = 4,294,967,296, so 32 bits store the numbers 0 to 4,294,967,295, and there are 4,294,967,296 different 32-bit patterns.
In base 256 the largest has all four bytes 255: 255 × 256³ + 255 × 256² + 255 × 256 + 255 = 4,278,190,080 + 16,711,680 + 65,280 + 255 = 4,294,967,295.
Write the 32-bit address 11000000101010000000000111111110 in dotted decimal.
▸ Show solution
The four bytes are 11000000 = 192, 10101000 = 168, 00000001 = 1 and 11111110 = 254 (128 + 64 + 32 + 16 + 8 + 4 + 2), so the address is 192.168.1.254.
In the explorer, start from 1,000 and shift left again and again. After how many shifts does a 1 fall off the left end, and what number remains after that shift?
▸ Show solution
1,000 = 0000001111101000 has six zeros on the left. Each shift moves every bit one place left, so six shifts lose nothing and double the number six times: 1,000 × 2⁶ = 64,000, still below 65,536.
The seventh shift pushes the leftmost 1 out of the sixteen bits. Without the limit it would give 2 × 64,000 = 128,000, a 17-bit number whose 1 in position 16 is worth 2¹⁶ = 65,536; losing that bit leaves 128,000 − 65,536 = 62,464.
Summary
- A computer stores a whole number in a fixed number of bits, the width, such as 8, 16, 32 or 64: its binary numeral with zeros written on the left. n bits store the numbers 0 to 2ⁿ − 1.
- Bit positions run from 0 at the right; position k is worth 2ᵏ. The rightmost bit is the least significant bit (it tells odd from even), the leftmost the most significant bit (1 exactly when x ≥ 2ⁿ⁻¹). Some documents number from the left: check the convention.
- A 16-bit number has a high byte H and a low byte L with x = 256 × H + L; in general the bytes of a number are its digits in base 256. Dotted decimal writes an Internet address as its four bytes in decimal.
- Memory is a row of bytes with addresses from 0. Big-endian order stores the most significant byte first, little-endian the least significant; the Internet uses big-endian, WebAssembly little-endian.
- Bits have no meaning by themselves: the width, the byte order and the kind of number must be agreed before they can be read.
Sources
- 1.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 4, “Number Theory and Cryptography”, section 4.2, “Integer Representations and Algorithms” (4.2.2, “Representations of Integers”), p. 260 (the whole topic: pp. 260–261).
“In particular, computers usually use binary notation (with 2 as the base) when carrying out arithmetic”
Used for: computers usually do arithmetic in binary notation, with 2 as the base. - 2.Jean-Claude Franchitti and others, Introduction to Computer Science (web PDF of April 20, 2026, OpenStax, Rice University, 2024).Chapter 5, “Hardware Realizations of Algorithms: Computer Systems Design”, section 5.4, “Machine-Level Program Representation” (“Memory Addressing Modes”), p. 215 (the whole topic: pp. 214–216).
“In assembly there are no complex data structures; there are only data items of 1, 2, 4, and 8 bytes.”
Used for: the instructions of the x86 family of processors (the subject of this section) work on data items of 1, 2, 4 or 8 bytes. - 3.Jean-Claude Franchitti and others, Introduction to Computer Science (web PDF of April 20, 2026, OpenStax, Rice University, 2024).Chapter 7, “High-Level Programming”, section 7.2, “Programming Language Constructs” (“Primitive Data Types”), p. 312 (the whole topic: pp. 312).
“For example, a Java int data type holds a whole number of size four bytes, while a short int holds a whole number of two bytes.”
Used for: programming languages give each kind of whole number a fixed size: in Java an int takes four bytes and a short two. - 4.Information Sciences Institute, University of Southern California (J. Postel, ed.), “RFC 791: Internet Protocol”, RFC Editor, Internet Engineering Task Force (September 1981).Section “3.1, “Internet Header Format”: Total Length”. rfc-editor.org/rfc/rfc791.html · open at the quoted passage.
“Total Length: 16 bits Total Length is the length of the datagram, measured in octets, including internet header and data. This field allows the length of a datagram to be up to 65,535 octets.”
Used for: the Internet Protocol keeps the length of each packet (datagram) in a field of 16 bits, which allows lengths up to 65,535 octets. - 5.Information Sciences Institute, University of Southern California (J. Postel, ed.), “RFC 791: Internet Protocol”, RFC Editor, Internet Engineering Task Force (September 1981).Section “2.3, “Function Description”: Addressing”. rfc-editor.org/rfc/rfc791.html · open at the quoted passage.
“Addresses are fixed length of four octets (32 bits).”
Used for: Internet Protocol addresses are four octets, 32 bits. - 6.Andreas Rossberg (ed.), “WebAssembly Core Specification (W3C Recommendation)”, World Wide Web Consortium (W3C) (5 December 2019).Section “2.3.1, “Value Types””. w3.org/TR/wasm-core-1 · open at the quoted passage.
“classify 32 and 64 bit integers, respectively. Integers are not inherently signed or unsigned, their interpretation is determined by individual operations.”
Used for: WebAssembly has integer types of 32 and 64 bits (the sentence begins “The types i32 and i64”); its integers are not inherently signed or unsigned, and their interpretation is determined by the operations that use them. - 7.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter Answers to Odd-Numbered Exercises, section Chapter 4, Supplementary Exercises, answer 11, pp. S-29 (the whole topic: pp. S-29).
“We ask the person to write the number in binary, using leading 0s if necessary to make it n bits long.”
Used for: the n-bit pattern of a number: its binary numeral with zeros written on the left until it has exactly n bits. - 8.Andreas Rossberg (ed.), “WebAssembly Core Specification (W3C Recommendation)”, World Wide Web Consortium (W3C) (5 December 2019).Section “2.2.2, “Integers””. w3.org/TR/wasm-core-1 · open at the quoted passage.
“Different classes of integers with different value ranges are distinguished by their bit width N and by whether they are unsigned or signed.”
Used for: the number of bits of a stored integer is called its width, or bit width. - 9.Jean-Claude Franchitti and others, Introduction to Computer Science (web PDF of April 20, 2026, OpenStax, Rice University, 2024).Chapter 5, “Hardware Realizations of Algorithms: Computer Systems Design”, section 5.3, “Machine-Level Information Representation”, p. 206 (the whole topic: pp. 205–206).
“The least significant bit has a position 0, the next one has position 1, and so on.”
Used for: bit positions are numbered from 0 at the right; the bit in position 0 is the least significant bit. - 10.Jean-Claude Franchitti and others, Introduction to Computer Science (web PDF of April 20, 2026, OpenStax, Rice University, 2024).Chapter 5, “Hardware Realizations of Algorithms: Computer Systems Design”, section 5.3, “Machine-Level Information Representation”, p. 206 (the whole topic: pp. 205–206).
“The obvious option is to use the most significant bit (i.e., the leftmost bit) as a sign bit”
Used for: the most significant bit is the leftmost bit. - 11.Information Sciences Institute, University of Southern California (J. Postel, ed.), “RFC 791: Internet Protocol”, RFC Editor, Internet Engineering Task Force (September 1981).Section “Appendix B, “Data Transmission Order””. rfc-editor.org/rfc/rfc791.html · open at the quoted passage.
“Whenever an octet represents a numeric quantity the left most bit in the diagram is the high order or most significant bit. That is, the bit labeled 0 is the most significant bit.”
Used for: the leftmost bit is the high-order or most significant bit; the Internet Protocol’s diagrams label it 0. - 12.Danny Cohen, “IEN 137: On Holy Wars and a Plea for Peace”, RFC Editor (Internet Experiment Notes) (1 April 1980).Section “Memory Order”. rfc-editor.org/ien/ien137.txt · open at the quoted passage.
“The Little-Endians assign B0 to the LSB of the words and B31 is the MSB. The Big-Endians do just the opposite, B0 is the MSB and B31 is the LSB.”
Used for: Cohen (1980) noted that one camp numbers bit 0 at the least significant bit and the other at the most significant bit. - 13.O. Jacobsen and D. Lynch, “RFC 1208: A Glossary of Networking Terms”, RFC Editor, Internet Engineering Task Force (March 1991).Section “Glossary: “big-endian””. rfc-editor.org/rfc/rfc1208.html · open at the quoted passage.
“big-endian: A format for storage or transmission of binary data in which the most significant bit (or byte) comes first. The reverse convention is called little-endian.”
Used for: the terms most significant byte (and, in the glossary’s entry “little-endian”, least significant byte); the definitions of big-endian order (most significant byte first) and little-endian order (the reverse). - 14.S. Kirkpatrick, M. Stahl and M. Recker, “RFC 1166: Internet Numbers”, RFC Editor, Internet Engineering Task Force (July 1990).Section “Network Numbers”. rfc-editor.org/rfc/rfc1166.html · open at the quoted passage.
“One commonly used notation for internet host addresses divides the 32-bit address into four 8-bit fields and specifies the value of each field as a decimal number with the fields separated by periods. This is called the "dotted decimal" notation.”
Used for: the dotted decimal notation divides the 32-bit address into four 8-bit fields, writes each in decimal and separates them by periods. - 15.J. Postel, “RFC 790: Assigned Numbers”, RFC Editor, Internet Engineering Task Force (September 1981).
“One notation for internet host addresses commonly used divides the 32-bit address into four 8-bit fields and specifies the value of each field as a decimal number with the fields separated by periods.”
Used for: the same notation in an earlier document: four 8-bit fields, each written in decimal, separated by periods. - 16.R. Shirey, “RFC 4949: Internet Security Glossary, Version 2”, RFC Editor, Internet Engineering Task Force (August 2007).Section “4, “Definitions”: “byte””. rfc-editor.org/rfc/rfc4949.html · open at the quoted passage.
“A fundamental unit of computer storage; the smallest addressable unit in a computer's architecture.”
Used for: the byte is the smallest unit of memory that has an address of its own. - 17.Andreas Rossberg (ed.), “WebAssembly Core Specification (W3C Recommendation)”, World Wide Web Consortium (W3C) (5 December 2019).Section “1.3.1, “Concepts”: Linear Memory”. w3.org/TR/wasm-core-1 · open at the quoted passage.
“A linear memory is a contiguous, mutable array of raw bytes. Such a memory is created with an initial size but can be grown dynamically. A program can load and store values from/to a linear memory at any byte address (including unaligned).”
Used for: WebAssembly describes its memory as a contiguous array of raw bytes, from which values can be loaded and to which they can be stored at any byte address. - 18.Andreas Rossberg (ed.), “WebAssembly Core Specification (W3C Recommendation)”, World Wide Web Consortium (W3C) (5 December 2019).Section “2.4.4, “Memory Instructions””. w3.org/TR/wasm-core-1 · open at the quoted passage.
“The static address offset is added to the dynamic address operand, yielding a 33 bit effective address that is the zero-based index at which the memory is accessed.”
Used for: in WebAssembly an address is the zero-based index of a byte in memory, so the first byte has address 0. - 19.Information Sciences Institute, University of Southern California (J. Postel, ed.), “RFC 791: Internet Protocol”, RFC Editor, Internet Engineering Task Force (September 1981).Section “Appendix B, “Data Transmission Order””. rfc-editor.org/rfc/rfc791.html · open at the quoted passage.
“When a multi-octet quantity is transmitted the most significant octet is transmitted first.”
Used for: the Internet transmits the most significant octet of a multi-octet quantity first: big-endian order. - 20.Andreas Rossberg (ed.), “WebAssembly Core Specification (W3C Recommendation)”, World Wide Web Consortium (W3C) (5 December 2019).Section “2.4.4, “Memory Instructions””. w3.org/TR/wasm-core-1 · open at the quoted passage.
“All values are read and written in little endian byte order.”
Used for: WebAssembly reads and writes all values in memory in little-endian byte order. - 21.Danny Cohen, “IEN 137: On Holy Wars and a Plea for Peace”, RFC Editor (Internet Experiment Notes) (1 April 1980).Section “Introduction”. rfc-editor.org/ien/ien137.txt · open at the quoted passage.
“The followers of the former approach are called the Little-Endians, and the followers of the latter are called the Big-Endians.”
Used for: Danny Cohen’s note of 1 April 1980 calls the followers of the two orders the Little-Endians and the Big-Endians. - 22.Danny Cohen, “IEN 137: On Holy Wars and a Plea for Peace”, RFC Editor (Internet Experiment Notes) (1 April 1980).Section “Appendix: “Some notes on Swift’s Gulliver’s Travels””. rfc-editor.org/ien/ien137.txt · open at the quoted passage.
“Gulliver finds out that there is a law, proclaimed by the grandfather of the present ruler, requiring all citizens of Lilliput to break their eggs only at the little ends. Of course, all those citizens who broke their eggs at the big ends were angered by the proclamation. Civil war broke out between the Little-Endians and the Big-Endians”
Used for: the names come from Swift’s Gulliver’s Travels, in which Lilliput’s law on breaking eggs at the little end leads to war between Little-Endians and Big-Endians. - 23.G. Malkin and T. LaQuey Parker (eds.), “RFC 1392: Internet Users’ Glossary”, RFC Editor, Internet Engineering Task Force (January 1993).Section “Glossary: “big-endian””. rfc-editor.org/rfc/rfc1392.html · open at the quoted passage.
“The term comes from "Gulliver's Travels" by Jonathan Swift. The Lilliputians, being very small, had correspondingly small political problems. The Big-Endian and Little-Endian parties debated over whether soft-boiled eggs should be opened at the big end or the little end.”
Used for: a second source that the terms big-endian and little-endian come from Swift’s Gulliver’s Travels, where the Big-Endian and Little-Endian parties of Lilliput quarrel over the end at which eggs should be opened. - 24.Danny Cohen, “IEN 137: On Holy Wars and a Plea for Peace”, RFC Editor (Internet Experiment Notes) (1 April 1980).Section “Swift’s Point”. rfc-editor.org/ien/ien137.txt · open at the quoted passage.
“Swift's point is that the difference between breaking the egg at the little-end and breaking it at the big-end is trivial. Therefore, he suggests, that everyone does it in his own preferred way.”
Used for: Swift’s point, as Cohen read it, was that the difference is trivial, so that everyone may do it in his own way. - 25.Danny Cohen, “IEN 137: On Holy Wars and a Plea for Peace”, RFC Editor (Internet Experiment Notes) (1 April 1980).Section “Swift’s Point”. rfc-editor.org/ien/ien137.txt · open at the quoted passage.
“We agree that the difference between sending eggs with the little- or the big-end first is trivial, but we insist that everyone must do it in the same way, to avoid anarchy.”
Used for: Cohen agreed that the difference is trivial but insisted that everyone must do it the same way. - 26.Jean-Claude Franchitti and others, Introduction to Computer Science (web PDF of April 20, 2026, OpenStax, Rice University, 2024).Chapter 5, “Hardware Realizations of Algorithms: Computer Systems Design”, section 5.3, “Machine-Level Information Representation”, p. 205 (the whole topic: pp. 205).
“It is important to know that a series of bits does not have a meaning by itself. For example, in order to interpret or translate the binary number 0011 as a decimal number, you need to know whether it is an unsigned or a signed integer.”
Used for: a series of bits has no meaning by itself: to read it as a number one must know how it was written.