Codata constant type
Get the constant value or uncertainty.
Get the constant value or uncertainty for the kind sp
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(codata_constant_type), | intent(in) | :: | self |
Codata constant |
||
real(kind=sp), | intent(in) | :: | mold |
dummy argument to disambiguate at compile time the generic interface |
||
logical, | intent(in), | optional | :: | uncertainty |
Set to true if the uncertainty is required. Default to .false.. |
Get the constant value or uncertainty for the kind dp
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(codata_constant_type), | intent(in) | :: | self |
Codata constant |
||
real(kind=dp), | intent(in) | :: | mold |
dummy argument to disambiguate at compile time the generic interface |
||
logical, | intent(in), | optional | :: | uncertainty |
Set to true if the uncertainty is required. Default to .false.. |
Derived type for representing a Codata constant.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=64), | public | :: | name | ||||
real(kind=dp), | public | :: | uncertainty | ||||
character(len=32), | public | :: | unit | ||||
real(kind=dp), | public | :: | value |
procedure, public :: print | |
generic, public :: to_real => to_real_sp, to_real_dp | |
procedure, public :: to_real_dp | |
procedure, public :: to_real_sp |