No animals work harder than ants.
esv::class_type::is_nan
Method .is_nan of esv::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 <esvcpp/core.hpp> #include <limits> int main() { constexpr esv::fx32 a = std::numeric_limits<esv::f32>::quiet_NaN(); static_assert(a.is_nan()); constexpr esv::fx32 b = esv::fx32_max; static_assert(! b.is_nan()); }