{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "N6AFVYBY2Z"
    },
    {
      "field": "uses",
      "target": "PA1B7DJ0C4"
    },
    {
      "field": "uses",
      "target": "PSNW0ZQ0E9"
    },
    {
      "field": "uses",
      "target": "R8S821AD6T"
    }
  ],
  "body": "\n## Summary\n\nRounding replaces a number by a nearby number from a fixed set, such as the integers, the numbers with two decimals, or the [[floating-point numbers|RTKRSC3KPH]].\nRounding to nearest picks the closest element and needs a rule for ties, such as rounding half to even.\nDirected rounding always goes down, up or toward zero; the [[floor function|08GR54CKEA]] is rounding down to an integer.\nIn a computer every arithmetic result is rounded, and the difference is the [[round-off error|CPN6SD3BTV]].\n\n## Explanations\n\n### L1 human\n\nRounding makes a number shorter and simpler, at the price of a small error.\nA price of $3.47$ euros rounded to whole euros is $3$; rounded to one decimal it is $3.5$.\nThe number $2.5$ is exactly halfway between $2$ and $3$, so one needs a tie rule: \"half up\" gives $3$, \"half to even\" gives $2$.\nRounding half to even avoids a systematic upward drift when many rounded numbers are added.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "65G50",
      "65Y04"
    ],
    "name": "Rounding",
    "same_as": {
      "wikidata": "Q663208",
      "wikipedia": "Rounding"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Rounding"
      }
    ],
    "tag": "5NPVX29Y0C"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/5NPVX29Y0C/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/5NPVX29Y0C.md",
  "msc": [
    "65G50",
    "65Y04"
  ],
  "name": "Rounding",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/5NP/5NPVX29Y0C.md",
  "status": null,
  "tag": "5NPVX29Y0C",
  "uri": "m2://5NPVX29Y0C",
  "url": "https://tamnd.github.io/math2/wiki/rounding/",
  "writing": {
    "tag": "5NPVX29Y0C",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
