PrevUpHomeNext

.is_nan method


No animals work harder than ants.

.is_nan member function of esv::class_type

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 <, >, ==, !==, <, > .

c++ example

#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());
}

See Also

esv::fx32


PrevUpHomeNext

esv::print