encyclopegia.org

Undefined value

In computing (particularly, in programming), an undefined value is a condition where an expression in a programming language does not have a semantically correct value in the language, even though it is syntactically correct. An undefined value must not be confused with empty string, Boolean "false" or other "empty" (but defined) values. Depending on circumstances, evaluation to an undefined value may lead to exception or undefined behaviour, but in some programming languages undefined values can occur during a normal, predictable course of program execution. Dynamically typed languages usually treat undefined values explicitly when possible. For instance, Perl has undef operator which can "assign" such value to a variable. In other type systems an undefined value can mean an unknown, unpredictable value, or merely a program failure on attempt of its evaluation. Nullable types offer an intermediate approach; see below.

In computing (particularly, in programming), an undefined value is a condition where an expression in a programming language does not have a semantically correct value in the language, even though it is syntactically correct. An undefined value must not be confused with empty string, Boolean "false" or other "empty" (but defined) values. Depending on circumstances, evaluation to an undefined value may lead to exception or undefined behaviour, but in some programming languages undefined values can occur during a normal, predictable course of program execution. Dynamically typed languages usually treat undefined values explicitly when possible. For instance, Perl has undef operator which can "assign" such value to a variable. In other type systems an undefined value can mean an unknown, unpredictable value, or merely a program failure on attempt of its evaluation. Nullable types offer an intermediate approach; see below.

References

No reference rows published for this article.

Cite this article

MLA

"Undefined value." encyclopegia.org, 2026, https://encyclopegia.org/wiki/undefined-value. Accessed 24 November 2026.

Chicago

"Undefined value." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/undefined-value.

APA

encyclopegia.org. (2026). Undefined value. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/undefined-value

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

half-value thickness

stub · references available

truth value

stub · references available

mean value theorem

stub · references available

default value

stub · references available

sign-value numeral system

stub · references available

replacement value

stub · references available

market value of real property

stub · references available

instrumental and value-rational action

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1378928940 · 0.5 · snapshot enwiki-001378928940

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.