{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $x$ be a real number.\nThe ceiling of $x$, written $\\lceil x \\rceil$, is the least [[integer|0C4JS9RF5M]] $n$ with $x \\le n$.\nThe ceiling function is the function $\\mathbb{R} \\to \\mathbb{Z}$, $x \\mapsto \\lceil x \\rceil$.\n\n## Remarks\n\nThe ceiling and the [[floor|0YVRNEDSVG]] are related by $\\lceil x \\rceil = -\\lfloor -x \\rfloor$.\nFor each real $x$, $x \\le \\lceil x \\rceil \u003c x + 1$.\nIf $x$ is not an integer, then $\\lceil x \\rceil = \\lfloor x \\rfloor + 1$. If $x$ is an integer, then $\\lceil x \\rceil = \\lfloor x \\rfloor = x$.\n\n## Explanations\n\n### L1 human\n\nThe ceiling of a number rounds it up to a whole number.\nIf a trip needs $2.1$ buses, then you must order $\\lceil 2.1 \\rceil = 3$ buses.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0EA4XFB0EY",
    "kind": "definition",
    "msc": [
      "26A09"
    ],
    "name": "Ceiling function",
    "sources": [
      {
        "locator": "Definition and properties",
        "url": "https://en.wikipedia.org/wiki/Floor_and_ceiling_functions"
      }
    ],
    "tag": "0ASM4EPMB2",
    "uses": [
      "0YVRNEDSVG",
      "0C4JS9RF5M"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0ASM4EPMB2/",
  "links": [
    {
      "field": "defines",
      "target": "0EA4XFB0EY"
    },
    {
      "field": "uses",
      "target": "0YVRNEDSVG"
    },
    {
      "field": "uses",
      "target": "0C4JS9RF5M"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0ASM4EPMB2.md",
  "msc": [
    "26A09"
  ],
  "name": "Ceiling function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0AS/0ASM4EPMB2.md",
  "status": null,
  "tag": "0ASM4EPMB2",
  "uri": "m2://0ASM4EPMB2",
  "url": "https://math2.tamnd.com/wiki/ceiling-function-definition/",
  "writing": {
    "tag": "0ASM4EPMB2",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
