PrevUpHomeNext

.is_nan method


.is_nan member function of utx::class_type

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

c++ example

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

See Also

utx::fx32


PrevUpHomeNext

utx::print

esv::print