libsim Versione 7.2.4
|
Definitions of constants and functions for working with missing values. Continua...
Tipi di dato | |
interface | c_e |
Function to check whether a value is missing or not. Continua... | |
Funzioni/Subroutine | |
elemental logical function, private | c_e_b (var) |
Check whether the byte argument is valid. | |
elemental logical function, private | c_e_s (var) |
Check whether the short integer argument is valid. | |
elemental logical function, private | c_e_l (var) |
Check whether the long integer argument is valid. | |
elemental logical function, private | c_e_ll (var) |
Check whether the long long integer argument is valid. | |
elemental logical function, private | c_e_r (var) |
Check whether the real argument is valid. | |
elemental logical function, private | c_e_d (var) |
Check whether the double precision argument is valid. | |
elemental logical function, private | c_e_c (var) |
Check whether the character argument is valid. | |
Variabili | |
real, parameter | rmiss = HUGE(1.0) |
default single precision real | |
double precision, parameter | dmiss = HUGE(1.0D0) |
default double precision real | |
real(kind=fp_s), parameter | rsmiss = HUGE(1.0_fp_s) |
single precision IEEE real (kind=fp_s) | |
real(kind=fp_d), parameter | rdmiss = HUGE(1.0_fp_d) |
double precision IEEE real (kind=fp_d) | |
integer, parameter | imiss = HUGE(0) |
default integer | |
integer(kind=int_b), parameter | ibmiss = HUGE(0_int_b) |
1-byte integer (kind=int_b) | |
integer(kind=int_s), parameter | ismiss = HUGE(0_int_s) |
2-byte integer (kind=int_s) | |
integer(kind=int_l), parameter | ilmiss = HUGE(0_int_l) |
4-byte integer (kind=int_l) | |
integer(kind=int_ll), parameter | illmiss = HUGE(0_int_ll) |
8-byte integer if supported (kind=int_ll) | |
character(len=1), parameter | cmiss = char(0) |
character (any length) | |
Definitions of constants and functions for working with missing values.
This modules provides tools for handling missing values in various data types. Users should use the various *miss constants for setting a variable to a missing value, and use the interfaced function c_e or an equality test with the corresponding *miss constant for checking the validity of a value.
When using the *miss constants, it is important to choose the constant of the right type in order to avoid implicit conversions that would impair the results.
Example of typical use: