to_num_base Interface

public interface to_num_base

Module Procedures

private elemental subroutine to_int8_base(s, v, p, stat)

Return an int8 integer

initialize error status with any number > 0

Indicates integer overflow

Arguments

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

input string

integer(kind=int8), intent(out) :: v

Output real value

integer(kind=int8), intent(out) :: p

position within the number

integer(kind=int8), intent(out) :: stat

status upon succes or failure to read

private elemental subroutine to_int16_base(s, v, p, stat)

Return an int16 integer

initialize error status with any number > 0

Indicates integer overflow

Arguments

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

input string

integer(kind=int16), intent(out) :: v

Output real value

integer(kind=int8), intent(out) :: p

position within the number

integer(kind=int8), intent(out) :: stat

status upon succes or failure to read

private elemental subroutine to_int32_base(s, v, p, stat)

Return an int32 integer

initialize error status with any number > 0

Indicates integer overflow

Arguments

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

input string

integer(kind=int32), intent(out) :: v

Output real value

integer(kind=int8), intent(out) :: p

position within the number

integer(kind=int8), intent(out) :: stat

status upon succes or failure to read

private elemental subroutine to_int64_base(s, v, p, stat)

Return an int64 integer

initialize error status with any number > 0

Indicates integer overflow

Arguments

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

input string

integer(kind=int64), intent(out) :: v

Output real value

integer(kind=int8), intent(out) :: p

position within the number

integer(kind=int8), intent(out) :: stat

status upon succes or failure to read

private elemental subroutine to_sp_base(s, v, p, stat)

initialize error status with any number > 0

Arguments

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

input string

real(kind=wp), intent(inout) :: v

Output real value

integer(kind=int8), intent(out) :: p

last position within the string

integer(kind=int8), intent(out) :: stat

status upon success or failure to read

private elemental subroutine to_dp_base(s, v, p, stat)

initialize error status with any number > 0

Arguments

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

input string

real(kind=wp), intent(inout) :: v

Output real value

integer(kind=int8), intent(out) :: p

last position within the string

integer(kind=int8), intent(out) :: stat

status upon success or failure to read