utx::class_type::is_nan
Method .is_nan of utx::class_type is used to check if the object value
is NaN value. NaN value means the value can not compare by using any one
of <, >, ==, !==, <, >
.
#include <utxcpp/core.hpp> #include <limits> int main() { constexpr utx::fx32 a = std::numeric_limits<utx::f32>::quiet_NaN(); static_assert(a.is_nan()); constexpr utx::fx32 b = utx::fx32_max; static_assert(! b.is_nan()); }