null
/nลญl/
adjective
- Having no legal force; invalid. render a contract null and void.
- Of no consequence, effect, or value; insignificant.
- Amounting to nothing; absent or nonexistent. a null result.
soft question - In mathematics is null == zero? - Mathematics Stack Exchange
How can I differentiate between "zero" and "null"?
What is the difference between No Solution and Null Solution?
Why do we consider the null set to be a subset of all sets? Could we define it otherwise?
How do you define a null set?
What is a null set example?
What is a null set called?
Videos
The distinction between the empty set and the number
is similar to that between
NULL and ZERO. For example, the set of real solutions (or informally "the solution") to is
, but the solution to
is
.
In my mind there is no need for a concept like NULL in mathematics if you think of NULL as in NULL-pointers.
NULL in this sense is a technical necessity because you cannot un-define a variable: Once a variable has been assigned a value, a certain bit of memory is reserved for this variable and this memory is marked as re-usable only if the variable goes out of scope (simplified speaking).
You cannot say "The variable with this name doesn't exist anymore." without letting it go out of scope, because that would make language interpretation much more complicated without many benefits. Therefore, to indicate that the value of the variable has no meaning, one uses NULL.
What NULL stands for in the end depends upon the programming language: In some it is a special keyword, but in some it is also just a different name for the integer .
You can assign an arbitrary value to NULL in mathematics as mentioned in the other replies (,
, etc.) but as mathematics has nothing to do with memory allocation there is really no need for such a thing as
NULL.
Both in norwegian are "null", but I think they don't have the same meaning. For example, in programming, writing 0 is not the same as writing null.