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;

Math

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

Note: Only use NaN in assignments : use IsNaN.
 

IsNaN

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!