"off-by-one error" meaning in English

See off-by-one error in All languages combined, or Wiktionary

Noun

Forms: off-by-one errors [plural]
Head templates: {{en-noun}} off-by-one error (plural off-by-one errors)
  1. (programming) A logic error where a value, typically the number of iterations of a loop, is specified incorrectly, being either 1 less or 1 more than it should be. Wikipedia link: off-by-one error Categories (topical): Programming Related terms: fencepost problem
    Sense id: en-off-by-one_error-en-noun-CTMZAowm Categories (other): English entries with incorrect language header Topics: computing, engineering, mathematics, natural-sciences, physical-sciences, programming, sciences

Inflected forms

Download JSON data for off-by-one error meaning in English (1.4kB)

{
  "forms": [
    {
      "form": "off-by-one errors",
      "tags": [
        "plural"
      ]
    }
  ],
  "head_templates": [
    {
      "args": {},
      "expansion": "off-by-one error (plural off-by-one errors)",
      "name": "en-noun"
    }
  ],
  "lang": "English",
  "lang_code": "en",
  "pos": "noun",
  "senses": [
    {
      "categories": [
        {
          "kind": "other",
          "name": "English entries with incorrect language header",
          "parents": [
            "Entries with incorrect language header",
            "Entry maintenance"
          ],
          "source": "w"
        },
        {
          "kind": "topical",
          "langcode": "en",
          "name": "Programming",
          "orig": "en:Programming",
          "parents": [
            "Computing",
            "Software engineering",
            "Technology",
            "Computer science",
            "Engineering",
            "Software",
            "All topics",
            "Sciences",
            "Applied sciences",
            "Media",
            "Fundamental",
            "Communication"
          ],
          "source": "w"
        }
      ],
      "glosses": [
        "A logic error where a value, typically the number of iterations of a loop, is specified incorrectly, being either 1 less or 1 more than it should be."
      ],
      "id": "en-off-by-one_error-en-noun-CTMZAowm",
      "links": [
        [
          "programming",
          "programming#Noun"
        ],
        [
          "logic error",
          "logic error"
        ],
        [
          "iteration",
          "iteration"
        ],
        [
          "loop",
          "loop"
        ]
      ],
      "raw_glosses": [
        "(programming) A logic error where a value, typically the number of iterations of a loop, is specified incorrectly, being either 1 less or 1 more than it should be."
      ],
      "related": [
        {
          "word": "fencepost problem"
        }
      ],
      "topics": [
        "computing",
        "engineering",
        "mathematics",
        "natural-sciences",
        "physical-sciences",
        "programming",
        "sciences"
      ],
      "wikipedia": [
        "off-by-one error"
      ]
    }
  ],
  "word": "off-by-one error"
}
{
  "forms": [
    {
      "form": "off-by-one errors",
      "tags": [
        "plural"
      ]
    }
  ],
  "head_templates": [
    {
      "args": {},
      "expansion": "off-by-one error (plural off-by-one errors)",
      "name": "en-noun"
    }
  ],
  "lang": "English",
  "lang_code": "en",
  "pos": "noun",
  "related": [
    {
      "word": "fencepost problem"
    }
  ],
  "senses": [
    {
      "categories": [
        "English countable nouns",
        "English entries with incorrect language header",
        "English lemmas",
        "English multiword terms",
        "English nouns",
        "en:Programming"
      ],
      "glosses": [
        "A logic error where a value, typically the number of iterations of a loop, is specified incorrectly, being either 1 less or 1 more than it should be."
      ],
      "links": [
        [
          "programming",
          "programming#Noun"
        ],
        [
          "logic error",
          "logic error"
        ],
        [
          "iteration",
          "iteration"
        ],
        [
          "loop",
          "loop"
        ]
      ],
      "raw_glosses": [
        "(programming) A logic error where a value, typically the number of iterations of a loop, is specified incorrectly, being either 1 less or 1 more than it should be."
      ],
      "topics": [
        "computing",
        "engineering",
        "mathematics",
        "natural-sciences",
        "physical-sciences",
        "programming",
        "sciences"
      ],
      "wikipedia": [
        "off-by-one error"
      ]
    }
  ],
  "word": "off-by-one error"
}

This page is a part of the kaikki.org machine-readable English dictionary. This dictionary is based on structured data extracted on 2024-05-01 from the enwiktionary dump dated 2024-04-21 using wiktextract (f4fd8c9 and c9440ce). The data shown on this site has been post-processed and various details (e.g., extra categories) removed, some information disambiguated, and additional data merged from other sources. See the raw data download page for the unprocessed wiktextract data.

If you use this data in academic research, please cite Tatu Ylonen: Wiktextract: Wiktionary as Machine-Readable Structured Data, Proceedings of the 13th Conference on Language Resources and Evaluation (LREC), pp. 1317-1325, Marseille, 20-25 June 2022. Linking to the relevant page(s) under https://kaikki.org would also be greatly appreciated.