Inclusive range test for real(sp).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=sp), | intent(in) | :: | x | |||
| real(kind=sp), | intent(in) | :: | lo | |||
| real(kind=sp), | intent(in) | :: | hi |
elemental function is_in_range_sp(x, lo, hi) result(flag) !! Inclusive range test for real(sp). real(sp), intent(in) :: x, lo, hi logical :: flag flag = (lo <= x) .and. (x <= hi) end function is_in_range_sp