To use the Embarcadero inbuilt IsNan()
function you need to include (for XE4 anyway)
#include <System.Math.hpp>
If you are using basic XE then you need
#include <Math.hpp>
The latter also works on XE4 although the help indicates that System.Math.hpp
is needed.