NaN
From Lazarus wiki
Revision as of 02:41, 29 January 2018 by Kai Burghardt (talk | contribs) (formatting; add note only for floating point numbers; http_s_ links to documentation)
│
English (en) │
suomi (fi) │
русский (ru) │
NaN
(not a number) is a numeric data type value representing an undefined or unrepresentable value.
These values result from operations which have undefined numerical results.
NaN
is not the same as infinity.
program NotANumber(input, output, stderr);
begin
// writes 'Nan' (with spacing) on its own line
writeLn(0/0);
end.
Note, NaN
exists only in the context of floating point number calculations:
0 div 0
(integer division) is not allowed, though.
See also
- Value “is not a number”
IsNan
checks whether value is “not a number”.TAChart
documentation, § “skipping source items”