liveBook · Manning

Fixed-point representation

Fixed-point representation encodes numerical values as scaled integers with the radix point at a predetermined position.

How 2 Manning books explain it

Quantization and Fast Inference

Fixed-point representation encodes numerical values with a fixed scaling position between integer and fractional components.

How it is used
Introduces integer-based numerical representation as a foundation for neural-network quantization and hardware deployment.
How deep it goes
Explains Q-format scaling, signed decoding, range and precision, and arithmetic with a hardware-behavior simulation.
Examples
Works through Q3.4 encodings of 1.5 and −0.0625, plus multiplication and saturation in a FixedPoint simulation.
What you can do after
Evaluate range, resolution, and saturation in a fixed-point format, and understand their implications for quantization accuracy.

Read how Quantization and Fast Inference explains fixed-point representation →

Rust in Action: Systems programming concepts and techniques

A fixed-point number format represents fractional values with a fixed position for the decimal point and a predetermined allocation of bits.

How it is used
Uses compact fixed-point values to save space and support fractional calculations on CPUs without floating-point units.
How deep it goes
Works through Q7 storage, conversions, boundary handling, and tests.
Examples
Uses a Rust Q7 tuple struct and conversions between Q7 and f32 or f64, including out-of-bounds tests.
What you can do after
Build it from scratch as a Rust Q7 type with floating-point conversions and boundary checks.

Read how Rust in Action: Systems programming concepts and techniques explains fixed-point representation →

Also covered in

What to know first

Related concepts

Questions about fixed-point representation

What is fixed-point representation?

Fixed-point representation encodes numerical values as scaled integers with the radix point at a predetermined position.

Which Manning books explain fixed-point representation?

Quantization and Fast Inference and Rust in Action: Systems programming concepts and techniques.

What should I know before learning fixed-point representation?

Manning books that teach fixed-point representation usually introduce floating-point arithmetic first.

What is the difference between fixed-point representation and floating-point arithmetic?

Fixed-point representation encodes numerical values as scaled integers with the radix point at a predetermined position. Floating-point arithmetic is numerical computation using finite-precision representations of real numbers, which can introduce rounding and range errors.

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.