Bit
A bit is a binary digit and unit of digital information that represents one of two distinguishable values, conventionally 0 or 1.
Learn Rust in a Month of Lunches
A bit is a binary digit representing one of two possible values in digital computation.
- How it is used
- Uses bits to explain why Rust integer types hold different ranges of numbers.
- How deep it goes
- Explains binary place values and relates bit counts to integer size and maximum values.
- Examples
- Illustrates eight binary positions and compares the maximum values of u8, u16, and u128.
- What you can do after
- Understand how bits contribute to a binary number and how bit width relates to integer capacity.
Building Quantum Software with Python
A binary digit is a digit whose value is either 0 or 1 and that represents one position in a binary number.
- How it is used
- Models deterministic state storage and the low-level operations beneath classical software abstractions.
- How deep it goes
- Explains two states, toggling, reading, determinism, registers, and binary representation through computational comparisons.
- Examples
- Uses toggle switches, final-value computation, binary strings, registers, and successive division of 13.
- What you can do after
- Evaluate/understand deterministic bit computations and decode small integers from binary digits.
Read how Building Quantum Software with Python explains bit →
Timeless Algorithms, The Foundational Ideas
A bit is a binary unit of information that can take one of two possible values.
- How it is used
- Measures uncertainty in binary-choice units so information sources can be compared and communication requirements quantified.
- How deep it goes
- Defines a bit through equally likely binary choices and calculates fair-coin entropy, building on entropy as a measure of uncertainty.
- Examples
- Uses fair and biased coins, a six-sided die, and a standard deck to illustrate entropy measured in bits.
- What you can do after
- Understand how to express an information source’s uncertainty in bits and compare sources using that measure.
Read how Timeless Algorithms, The Foundational Ideas explains bit →
Classic Game Programming on the NES: Make your own retro video game
A bit is a binary digit that holds either zero or one.
- How it is used
- Represents pixels, coordinates, flags, and packed controller-button states within NES memory.
- How deep it goes
- Defines bit and byte layout, numbering, nibbles, numeric notation, and bit-oriented instructions without covering larger-number construction.
- Examples
- Demonstrates %10101010 as decimal 170, $AF as decimal 175, and an eight-read gamepad polling loop.
- What you can do after
- Apply it via 6502 assembler to write binary values, interpret byte positions, and pack gamepad button states.
Read how Classic Game Programming on the NES: Make your own retro video game explains bit →
Quantum Programming in Depth
A bit is a binary digit that represents either zero or one.
- How it is used
- Uses binary digits to encode and recover eigenphases during adaptive phase estimation.
- How deep it goes
- Explains sequential measurement and circuit adaptation, but stops short of a general treatment of binary representation.
- Examples
- Uses two-bit eigenphases such as 0.25 and 0.75 and the unitary INC as an analysis case.
- What you can do after
- Apply binary-digit reasoning to understand how adaptive phase estimation recovers eigenphase precision incrementally.
Acing the CCNA Exam: Volume 1 Fundamentals and Protocols
A bit is the smallest unit of digital information and has one of two possible values, conventionally 0 or 1.
- How it is used
- Explains the binary units underlying computer communication and network signaling.
- How deep it goes
- Defines bits and bytes, then illustrates physical voltage signaling without deriving binary conversion methods.
- Examples
- Uses a router sending one byte to a switch through voltage changes on a cable.
- What you can do after
- Understand how binary values form bytes and travel as signals between network devices.
Read how Acing the CCNA Exam: Volume 1 Fundamentals and Protocols explains bit →
Also covered in
- Classic Computer Science Problems in Swift: Essential techniques for practicing programmers
- Advanced Algorithms and Data Structures
- How Computers Make Books
- API Design Patterns
- Modern C, Third Edition
- Modern C
- Deep Learning with R, Third Edition
- Systems Programming with ZigIn early access (MEAP)
- Julia as a Second Language
What to know first
- variableA variable is a named program binding or entity associated with a value that can be accessed and, when permitted, changed during computation.
- optimizationOptimization is the systematic selection or modification of values, configurations, or implementations to improve a defined objective, often subject to constraints.
- stringA string is a programming-language value representing textual data as an ordered sequence of characters or encoded units.
- uncertaintyUncertainty is incomplete knowledge or limited confidence about a value, state, interpretation, behavior, or outcome.
Related concepts
- bytespart of · Bytes are an ordered sequence of byte values, typically eight-bit units, used to represent binary data.
- entropymeasures · Entropy is an information-theoretic measure of uncertainty in a probability distribution, defined as the expected value of the negative logarithm of outcome probability.
- hardware registerpart of · A hardware register is a small, rapidly accessible storage location within a processor or processing device that holds data, addresses, or control information during execution.
- borrowed bitincludes · A borrowed bit is a host bit reassigned to the network portion of an IPv4 address during subnetting.
Questions about bit
What is bit?
A bit is a binary digit and unit of digital information that represents one of two distinguishable values, conventionally 0 or 1.
Which Manning books explain bit?
Learn Rust in a Month of Lunches, Building Quantum Software with Python, Timeless Algorithms, The Foundational Ideas, Classic Game Programming on the NES: Make your own retro video game, Quantum Programming in Depth and Acing the CCNA Exam: Volume 1 Fundamentals and Protocols.
What should I know before learning bit?
Manning books that teach bit usually introduce variable, optimization, string and uncertainty first.
What kinds of bit are there?
Kinds of bit include borrowed bit and continuation bit.
What is bit part of?
Bit is part of bytes. Bytes are an ordered sequence of byte values, typically eight-bit units, used to represent binary data.
What is bit also called?
Bit is also called binary digit.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.





