_isunordered

This function compares two double precision numbers to determine if they are unordered.

int __cdecl _isunordered(
  double arg1,
  double arg2
);

Parameters

  • arg1
    [in] The value to be compared to arg2.
  • arg2
    [in] The value to be compared to arg1.

Return Values

Returns a Boolean value. TRUE indicates that arg1 and arg2 are unordered.

Remarks

IEEE-754 floating-point comparison can have four separate result values: less-than, equal-to, greater-than or unordered. The first three conditions can be tested using normal C operators, and this function is used to test for the last condition. Two values are unordered if either is a NaN. Note that this means that a NaN will not be equal to any value, even itself.

The C++ compiler returns a bool value instead of an int.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Cmnintrin.h.

See Also

Common Intrinsic Functions

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.