{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "49MX22EDS7"
    },
    {
      "field": "uses",
      "target": "4JAEKN22Y5"
    },
    {
      "field": "uses",
      "target": "64V8MA4FH4"
    },
    {
      "field": "uses",
      "target": "SVSVMWA9NQ"
    },
    {
      "field": "about",
      "target": "4JAEKN22Y5"
    },
    {
      "field": "about",
      "target": "SVSVMWA9NQ"
    },
    {
      "field": "defines",
      "target": "PA1B7DJ0C4"
    }
  ],
  "body": "\n## Summary\n\nRound-off error, or rounding error, is the difference between the exact result of a computation and the result computed with [[rounded|5NPVX29Y0C]] numbers.\nIn [[floating-point arithmetic|RTKRSC3KPH]] each single rounding has relative error at most the unit roundoff, about $10^{-16}$ in double precision.\nMany roundings can add up, and a subtraction of nearly equal numbers can magnify them, as in [[catastrophic cancellation|TJPNYW7J8E]].\nIt is distinct from [[truncation error|4AKCQERM89]], which comes from the method even in exact arithmetic.\n\n## Explanations\n\n### L1 human\n\nA computer keeps only a fixed number of digits, so it must round almost every result.\nEach rounding error is tiny, but a long computation does millions of operations.\nSometimes the errors cancel each other, and sometimes they pile up.\nA classic example: adding $0.1$ ten times in double precision does not give exactly $1$, because $0.1$ is rounded when stored and again after each addition.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "65G50"
    ],
    "name": "Round-off error",
    "same_as": {
      "wikidata": "Q2145211",
      "wikipedia": "Round-off error"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Round-off_error"
      }
    ],
    "tag": "CPN6SD3BTV"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/CPN6SD3BTV/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/CPN6SD3BTV.md",
  "msc": [
    "65G50"
  ],
  "name": "Round-off error",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/CPN/CPN6SD3BTV.md",
  "status": null,
  "tag": "CPN6SD3BTV",
  "uri": "m2://CPN6SD3BTV",
  "url": "https://tamnd.github.io/math2/wiki/round-off-error/",
  "writing": {
    "tag": "CPN6SD3BTV",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
