Numerical storage size parameters for real and integer values
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | dp | = | selected_real_kind(15) |
Double precision real numbers |
integer, | public, | parameter | :: | i1 | = | selected_int_kind(2) |
Char length for integers |
integer, | public, | parameter | :: | i2 | = | selected_int_kind(4) |
Short length for integers |
integer, | public, | parameter | :: | i4 | = | selected_int_kind(9) |
Length of default integers |
integer, | public, | parameter | :: | i8 | = | selected_int_kind(18) |
Long length for integers |
integer, | public, | parameter | :: | sp | = | selected_real_kind(6) |
Single precision real numbers |
integer, | public, | parameter | :: | wp | = | dp |
Wanted precision |