Precision and NaN handling module
Defines precision parameters and NaN (Not-a-Number) constants for the library
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=ik), | public, | parameter | :: | NaN_ik | = | -huge(0_ik)-1_ik | |
| real(kind=rk), | public | :: | NaN_rk | ||||
| integer, | public, | parameter | :: | ik | = | i32 | |
| logical, | public, | save | :: | nan_initialized | = | .false. | |
| integer, | public, | parameter | :: | rk | = | r64 |
Check if an integer value is NaN (sentinel)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ik), | intent(in) | :: | x |
Check if a real value is NaN
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | x |