Template Function TRAP::Math::IsNaN(genType)#

Function Documentation#

template<typename genType>
constexpr bool TRAP::Math::IsNaN(genType x) noexcept#

Determine whether the parameter is a number.

Note

When using compiler fast math, this function may fail!

Parameters:

x – Specifies the value to test for NaN.

Returns:

True if x hold a NaN (not a number) representation in the underlying implementation’s set of floating-point representations. False otherwise, including for implementations with no NaN representations.