to_real Interface

public interface to_real

Get the constant value or uncertainty.


Module Procedures

private pure elemental function to_real_sp(self, mold, uncertainty) result(r)

Get the constant value or uncertainty for the kind sp

Arguments

Type IntentOptional 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..

Return Value real(kind=sp)

private pure elemental function to_real_dp(self, mold, uncertainty) result(r)

Get the constant value or uncertainty for the kind dp

Arguments

Type IntentOptional 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..

Return Value real(kind=dp)