is_nan_integer Function

public elemental function is_nan_integer(x) result(is_nan)

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

Arguments

Type IntentOptional Attributes Name
integer(kind=ik), intent(in) :: x

Return Value logical


Source Code

    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