RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.NaN Constant

NaN represents a value that cannot be represented as a valid number.

Pascal
NaN = 0.0 / 0.0;
C++
NaN = 0.0 / 0.0;

NaN is literally defined as 0.0/0.0 : an undefined value.

Note: Only use NaN in assignments : use IsNan.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!