Check if an integer value is NaN (sentinel)
@param[in] x Integer value to check @return True if x equals the integer NaN sentinel, false otherwise
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=ik), | intent(in) | :: | x |
elemental function is_nan_integer(x) result(is_nan) integer(ik), intent(in) :: x logical :: is_nan is_nan = (x == NaN_ik) end function is_nan_integer