PrevUpHomeNext

utx::na


utx::na

utx::na is used to check if the comparison of two values have no result. Having result means the comparison result is one of <, <, >, >, ==; No result means not any one of them.

utx::na returns true if no comparison result; returns false if having comparison result.

Their types must satisfy utx::real_meric.

utx::na is used to check if the comparison of two values have no result.

c++ example

#include <utxcpp/core.hpp>

int main()
{
	utx::ux32 a = 7;
	utx::fx32 b = 3.2;
	utx::fx32 c = utx::nan_v<utx::fx32>;

	bool x = utx::lt(a, b);
	bool y = utx::gt(b, c);
	bool z = utx::na(a, c);

	utx::print(x, y, z); // false false true
}

See Also

utx::lt

utx::gt

utx::nan_v

utx::fx32

utx::ux32


PrevUpHomeNext

E

U