02Chapter 2: Unsigned integers and their rangeThis chapter assumes you can convert small numbers between decimal and binary and know the powers of two up to 2^10. It builds on the positional-systems chapter and prepares you for signed encodings, where the same bit patterns are read differently.6 min read
03Chapter 3: Signed integers: sign-magnitude, 1's and 2's complementYou should know unsigned binary place value, how to add binary numbers by hand, and powers of two. The previous chapter gave the unsigned range of n bits as 0 to 2^n - 1. This chapter shows three ways to spend those same n bits on both positive and negative values, and why one of them won.6 min read
04Chapter 4: 2's complement arithmetic and overflow detectionThis chapter assumes you can already write an n-bit 2's complement number and know its range, -2^(n-1) to 2^(n-1)-1. It also assumes you can add binary numbers by hand. The chapter covers how to add and subtract in 2's complement, and how to tell when a result does not fit.5 min read
05Chapter 5: Converting fractions between decimal and binaryThis chapter assumes you can already convert whole numbers between decimal and binary, and that you know powers of two, including negative exponents such as 2^-3 = 1/8. The goal is to extend place value to the right of the binary point. You will then convert in both directions, predict which decimal5 min read
06Chapter 6: Fixed-point representationFixed-point stores a real number as an ordinary integer and remembers, outside the data, where the binary point sits. This chapter assumes you can already convert fractions between decimal and binary, read and write 2's complement integers, and handle powers of two. It covers encoding, decoding, ran6 min read
07Chapter 7: Fixed-point range, resolution and limitationsThis chapter assumes you can encode 2's complement integers and convert binary fractions. The fixed-point encoding itself was covered in the previous chapter. Here you work out what a fixed-point format can and cannot represent, and why those limits led to floating point.6 min read
08Chapter 8: Normalized binary scientific notationThis chapter assumes you can convert between decimal and binary, including fractions such as 0.101b. It also assumes you can move a binary point by multiplying or dividing by powers of two. Floating-point formats store numbers in normalized form, so you need to produce and read that form before you 6 min read
09Chapter 9: Sign, biased exponent and mantissa fieldsThis chapter assumes you can write binary fractions, such as 0.101b = 0.625, and normalize a number into the form 1.xxx × 2^e. If not, review the previous chapters on fractional conversion and normalized scientific form first.4 min read
10Chapter 10: IEEE 754 single and double precision: encoding and decodingThis chapter assumes you can convert fractions between decimal and binary, write a number in normalized binary scientific form (1.f × 2^k), and understand why a biased exponent is used. Here you learn to encode a decimal value into the 32-bit and 64-bit IEEE 754 formats and to decode a bit pattern b5 min read
11Chapter 11: Zero, denormalized numbers, infinity and NaNThis chapter covers the reserved exponent patterns in IEEE 754: all zeros and all ones. It assumes you can encode a normal number as sign, biased exponent and fraction. It also assumes you know the biases (127 for single precision, 1023 for double) and the implicit leading 1 of a normalized mantissa6 min read
12Chapter 12: Range, precision and machine epsilonThis chapter assumes you can encode and decode an IEEE 754 value by hand: sign, biased exponent, implicit leading 1. You should also know the reserved exponent fields for zero, denormals, infinity and NaN. Here we turn those fields into three numbers you can state for any format: how large and small5 min read
13Chapter 13: Rounding modes and guard, round, sticky bitsAn exact result often has more bits than the fraction field can hold. This chapter covers how IEEE 754 chooses the stored value, and how hardware makes that choice using three extra bits. It assumes you can decode a single or double precision number, including the hidden leading 1, and that you can 6 min read
14Chapter 14: Floating-point addition and multiplicationThis chapter assumes you can already encode and decode IEEE 754 single precision values (sign, biased exponent, hidden bit), and that you know what guard, round and sticky bits do. Here we put those pieces together into the two arithmetic operations that GATE questions ask about most.5 min read
15Chapter 15: Floating-point pitfalls: inexact decimals and non-associativityThis chapter assumes you can encode a number in IEEE 754, know the sign, biased exponent and fraction fields, and know that rounding to nearest is the default. It explains two consequences of finite precision that GATE questions and real programs both depend on. Many decimal fractions cannot be stor5 min read
16Chapter 16: GATE-style problem patterns and shortcutsThis chapter assumes you can already encode and decode 2's complement integers, fixed-point values and IEEE 754 fields by hand. Here we sort the questions GATE asks into a few recurring patterns, each with a fast method and a worked example.5 min read