{
  "schemaVersion": 1,
  "id": "atlas-lesson-floating-number-range-resolution",
  "title": "Floating-point range, resolution and rounding",
  "category": "learning",
  "format": "Atlas lesson",
  "description": "Explains which numerical values a finite bit pattern can represent before those values enter a learned computation.",
  "canonicalUrl": "https://semiaifoundry.com/learn/atlas/floating-number-range-resolution/",
  "publishedDate": null,
  "revisionDate": "2026-10-07",
  "author": null,
  "topic": "mathematical-foundations",
  "series": null,
  "license": null,
  "rightsUrl": "https://semiaifoundry.com/ai-atlas/licenses.html",
  "version": "1.3.0",
  "status": "Published educational lesson",
  "evidenceScope": "The workbench executes the declared small mechanism. Numeric examples are authored and independently checked, not measurements from the cited research. This authored seven-bit format uses bias 3, gradual underflow and nearest ties-to-even. Exponent 7 is special and excluded from the finite expression.",
  "contentCoverage": "published-lesson",
  "artifactUrl": "https://semiaifoundry.com/ai-atlas/lesson-data/floating-number-range-resolution-e821f16b66f0d28a.json",
  "interactiveUrl": "https://semiaifoundry.com/ai-atlas/#floating-number-range-resolution",
  "related": [],
  "supersedes": [],
  "supersededBy": [],
  "contentHash": "34849c4ecffc8951796c53ae502ac7593244d352d70883c0e1d175fb14e4858d",
  "contentLength": 5980,
  "jsonUrl": "https://semiaifoundry.com/agents/publications/atlas-lesson-floating-number-range-resolution.json",
  "markdownUrl": "https://semiaifoundry.com/agents/publications/atlas-lesson-floating-number-range-resolution.md",
  "sections": [
    {
      "id": "section-1",
      "title": "Floating-point range, resolution and rounding",
      "start": 41,
      "end": 482
    },
    {
      "id": "section-2",
      "title": "The mechanism",
      "start": 482,
      "end": 1684
    },
    {
      "id": "section-3",
      "title": "Science and assumptions",
      "start": 1684,
      "end": 1712
    },
    {
      "id": "section-4",
      "title": "Floating-point range, resolution and rounding",
      "start": 1712,
      "end": 2622
    },
    {
      "id": "section-5",
      "title": "Engineering example",
      "start": 2622,
      "end": 2930
    },
    {
      "id": "section-6",
      "title": "Distinctions and tradeoffs",
      "start": 2930,
      "end": 3393
    },
    {
      "id": "section-7",
      "title": "Specifications and interfaces",
      "start": 3393,
      "end": 3948
    },
    {
      "id": "section-8",
      "title": "Interfaces",
      "start": 3948,
      "end": 4226
    },
    {
      "id": "section-9",
      "title": "Check your understanding",
      "start": 4226,
      "end": 4255
    },
    {
      "id": "section-10",
      "title": "What primarily changes when fraction bits are increased at fixed exponent width?",
      "start": 4255,
      "end": 4810
    },
    {
      "id": "section-11",
      "title": "Evidence and scope",
      "start": 4810,
      "end": 5281
    },
    {
      "id": "section-12",
      "title": "Sources",
      "start": 5281,
      "end": 5626
    },
    {
      "id": "section-13",
      "title": "Continue exploring",
      "start": 5626,
      "end": 5649
    },
    {
      "id": "section-14",
      "title": "Related lessons",
      "start": 5649,
      "end": 5980
    }
  ],
  "citations": [
    {
      "title": "Explore in Atlas",
      "url": "https://semiaifoundry.com/ai-atlas/#floating-number-range-resolution"
    },
    {
      "title": "Goodfellow, Bengio and Courville · Numerical computation",
      "url": "https://www.deeplearningbook.org/contents/numerical.html"
    },
    {
      "title": "Published lesson data",
      "url": "https://semiaifoundry.com/ai-atlas/lesson-data/floating-number-range-resolution-e821f16b66f0d28a.json"
    },
    {
      "title": "Atlas releases and licensing",
      "url": "https://semiaifoundry.com/ai-atlas/licenses.html"
    },
    {
      "title": "Quantization and numerical representation",
      "url": "https://semiaifoundry.com/learn/atlas/quantization/"
    },
    {
      "title": "Floating-point reductions and compiler permissions",
      "url": "https://semiaifoundry.com/learn/atlas/floating-point-reduction-order/"
    },
    {
      "title": "Tensor Core matrix unit",
      "url": "https://semiaifoundry.com/learn/atlas/tensor-core/"
    }
  ],
  "recordHash": "f59782ae404311dd591d07782e429a2d1524a03d36b56a1eff7367432752834f",
  "contentFormat": "text/markdown",
  "content": "mathematical-foundations · Atlas v1.3.0\n\n# Floating-point range, resolution and rounding\n\nExplains which numerical values a finite bit pattern can represent before those values enter a learned computation.\n\n[Explore in Atlas](https://semiaifoundry.com/ai-atlas/#floating-number-range-resolution)Mathematical and data space; dimensions are not physical distance\n\nLearning objectiveEncode a value in a declared miniature format and diagnose rounding, gradual underflow and overflow.\n\n## The mechanism\n\nFloating-point formats distribute representable numbers across a range of magnitudes. An exponent controls scale while fraction bits provide resolution within that scale. A sign bit, exponent field and fraction field must be interpreted under an explicit encoding convention. The workbench defines its own seven-bit format: one sign bit, three exponent bits, three fraction bits and exponent bias 3. It reserves the all-ones exponent for special values, supports subnormals near zero and rounds ties toward an even low-order significand bit. This is a fully enumerated teaching format, not an assertion about a vendor’s FP8 implementation. Seeing the exact stored bits makes it possible to separate representability error from changes in an algorithm.\n\n1.  Separate the sign and magnitude, then identify the normal exponent interval or subnormal range.\n2.  Find adjacent representable magnitudes and round to the nearest, resolving exact midpoints with the declared even-bit rule.\n3.  Inspect the stored sign/exponent/fraction fields and the absolute difference from the input.\n4.  Probe the boundaries where spacing changes, a small value rounds to zero or a large value overflows.\n\n## Science and assumptions\n\n### Floating-point range, resolution and rounding\n\n$$\nx=(-1)^s\\begin{cases}2^{-2}\\,f/8,&e=0,\\\\2^{e-3}(1+f/8),&1\\le e\\le6.\\end{cases}\n$$\n\nSubnormals use exponent minus two without the implicit leading one; normal finite values use biased exponent e minus three and an implicit leading one.\n\nSymbols and units\n\ns\n\nSign field\n\nbit\n\ne\n\nStored exponent field\n\ninteger\n\nf\n\nStored fraction field from zero to seven\n\ninteger\n\nx\n\nRepresented finite value\n\ndimensionless\n\nIn this format, 1.0625 lies halfway between 1 and 1.125 and rounds to 1. The midpoint 1.1875 rounds to 1.25. The smallest positive subnormal is 1/32=0.03125; 1/64 is a tie that rounds to zero. The largest finite value is 15, and 15.5 reaches the nearest-rounding overflow threshold.\n\nAssumptions This authored seven-bit format uses bias 3, gradual underflow and nearest ties-to-even. Exponent 7 is special and excluded from the finite expression.\n\n## Engineering example\n\nIn this format, 1.0625 lies halfway between 1 and 1.125 and rounds to 1. The midpoint 1.1875 rounds to 1.25. The smallest positive subnormal is 1/32=0.03125; 1/64 is a tie that rounds to zero. The largest finite value is 15, and 15.5 reaches the nearest-rounding overflow threshold.\n\n## Distinctions and tradeoffs\n\nA datatype name or bit count does not specify all rounding, saturation, subnormal and accumulation behavior.\n\nMore exponent bits extend dynamic range; more fraction bits refine spacing. Neither change alone establishes model accuracy, latency or energy savings.\n\nTraining and inference depend on representable activations, weights, gradients and accumulations. Low precision needs explicit scale, accumulation and error contracts.\n\n## Specifications and interfaces\n\nTeaching specimen\n\nRepresent a number\n\nIn this format, 1.0625 lies halfway between 1 and 1.125 and rounds to 1. The midpoint 1.1875 rounds to 1.25. The smallest positive subnormal is 1/32=0.03125; 1/64 is a tie that rounds to zero. The largest finite value is 15, and 15.5 reaches the nearest-rounding overflow threshold.\n\nEvidence boundary\n\nExplicit computed example\n\nThis authored seven-bit format uses bias 3, gradual underflow and nearest ties-to-even. Exponent 7 is special and excluded from the finite expression.\n\n### Interfaces\n\nInputs and convention Input\n\nSeparate the sign and magnitude, then identify the normal exponent interval or subnormal range.\n\nComputed result and scope Output\n\nEncode a value in a declared miniature format and diagnose rounding, gradual underflow and overflow.\n\n## Check your understanding\n\n### What primarily changes when fraction bits are increased at fixed exponent width?\n\n1.  The spacing between representable values within a magnitude interval\n2.  The meaning of the target label\n3.  The physical number of training examples\n\nAnswer and reasoning\n\nThe spacing between representable values within a magnitude interval\n\nThe spacing between representable values within a magnitude interval. This authored seven-bit format uses bias 3, gradual underflow and nearest ties-to-even. Exponent 7 is special and excluded from the finite expression.\n\n## Evidence and scope\n\nThe workbench executes the declared small mechanism. Numeric examples are authored and independently checked, not measurements from the cited research. This authored seven-bit format uses bias 3, gradual underflow and nearest ties-to-even. Exponent 7 is special and excluded from the finite expression.\n\nOpen Mathematical foundations for the bounded executable mechanism and its record. General numerical labs are an additional reference library.\n\n## Sources\n\n-   [Goodfellow, Bengio and Courville · Numerical computation](https://www.deeplearningbook.org/contents/numerical.html)\n\n[Published lesson data](https://semiaifoundry.com/ai-atlas/lesson-data/floating-number-range-resolution-e821f16b66f0d28a.json) · [Atlas releases and licensing](https://semiaifoundry.com/ai-atlas/licenses.html)\n\n## Continue exploring\n\n### Related lessons\n\n-   [Quantization and numerical representation](https://semiaifoundry.com/learn/atlas/quantization/)\n-   [Floating-point reductions and compiler permissions](https://semiaifoundry.com/learn/atlas/floating-point-reduction-order/)\n-   [Tensor Core matrix unit](https://semiaifoundry.com/learn/atlas/tensor-core/)"
}
