to_num Interface

public interface to_num

Conversion of strings to numbers (Specification)


Module Procedures

private elemental function to_int8(s, mold) result(v)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: s

input string

integer(kind=int8), intent(in) :: mold

dummy argument to disambiguate at compile time the generic interface

Return Value integer(kind=int8)

Output integer(int8) value

private elemental function to_int16(s, mold) result(v)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: s

input string

integer(kind=int16), intent(in) :: mold

dummy argument to disambiguate at compile time the generic interface

Return Value integer(kind=int16)

Output integer(int16) value

private elemental function to_int32(s, mold) result(v)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: s

input string

integer(kind=int32), intent(in) :: mold

dummy argument to disambiguate at compile time the generic interface

Return Value integer(kind=int32)

Output integer(int32) value

private elemental function to_int64(s, mold) result(v)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: s

input string

integer(kind=int64), intent(in) :: mold

dummy argument to disambiguate at compile time the generic interface

Return Value integer(kind=int64)

Output integer(int64) value

private elemental function to_sp(s, mold) result(v)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: s

input string

real(kind=sp), intent(in) :: mold

dummy argument to disambiguate at compile time the generic interface

Return Value real(kind=sp)

Output real(sp) value

private elemental function to_dp(s, mold) result(v)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: s

input string

real(kind=dp), intent(in) :: mold

dummy argument to disambiguate at compile time the generic interface

Return Value real(kind=dp)

Output real(dp) value