ieee_unordered

Date:

10-12-2011

NAME

IEEE_UNORDERED - Determines if either argument is a NaN

SYNOPSIS

IEEE_UNORDERED ([X=]x [,[Y=]y])

IMPLEMENTATION

Cray Linux Environment (CLE)

STANDARDS

Fortran

IEEE Standard for Binary Floating-point Arithmetic

DESCRIPTION

The IEEE_UNORDERED intrinsic function determines if x or y is a NaN. It accepts the following arguments:

x

Can be of type real.

y

Can be of type real.

IEEE_UNORDERED is an elemental function. The name of this intrinsic cannot be passed as an argument.

IEEE_UNORDERED should not be invoked if either IEEE_SUPPORT_DATATYPE(X)orIEEE_SUPPORT_DATATYPE(Y)has the value false.

NOTES

The IEEE intrinsic procedures use the named constants contained in a system module, so you must include the following statement in your program:

USE, INTRINSIC :: IEEE_ARITHMETIC

RETURN VALUES

The result type and type parameter is default logical.

The result has the value of true if x or y is a NaN or both are NaNs. Otherwise, the value is false.

EXAMPLES

Example 1:

USE, INTRINSIC :: IEEE_ARITHMETIC
LOGICAL unordered_result
REAL(8) k, y

   ! calculations using k and y
unordered_result = IEEE_UNORDERED( k, y)

SEE ALSO

ieee_support_datatype(3i)