off-by-one error en · NOUN
Pronunciation
- (US) audio
Meanings
-
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.
Using an incorrect relational operator or an incorrect final value of a loop counter in the loop-continuation condition of a repetition statement causes an off-by-one error.
2005, Harvey M. Deitel, Paul J. Deitel, C# for Programmers, second edition, Prentice Hall Professional, →ISBN, page 164:
Forms
| Spelling | Features | Labels | Source |
|---|---|---|---|
| off-by-one errors | Number=Plur | lexicographic |
Relateds
Synonyms
OBO · OBOE · off-by-one bug
Translations (8)
de Off-by-one-Fehler (Translations) · ru ошибка на единицу (Translations) · pl błąd o jeden (Translations) · ru ошибка неучтённой единицы (Translations) · de Um-eins-daneben-Fehler (Translations) · fi off by one -virhe (Translations) · fi yhdellä pielessä -virhe (Translations) · de Off-by-one-Error (Translations)