dm_string_from Interface

public interface dm_string_from

Generic number to string converter.


Module Procedures

private pure subroutine string_from_int32(i, str, error)

Returns string representation of given 4-byte integer.

Arguments

Type IntentOptional Attributes Name
integer(kind=i4), intent(in) :: i

Input.

character(len=:), intent(out), allocatable :: str

Output.

integer, intent(out), optional :: error

Error code.

private pure subroutine string_from_int64(i, str, error)

Returns string representation of given 8-byte integer.

Arguments

Type IntentOptional Attributes Name
integer(kind=i8), intent(in) :: i

Input.

character(len=:), intent(out), allocatable :: str

Output.

integer, intent(out), optional :: error

Error code.

private pure subroutine string_from_real32(f, str, error)

Returns string representation of given 4-byte real.

Arguments

Type IntentOptional Attributes Name
real(kind=r4), intent(in) :: f

Input.

character(len=:), intent(out), allocatable :: str

Output.

integer, intent(out), optional :: error

Error code.

private pure subroutine string_from_real64(f, str, error)

Returns string representation of given 8-byte real.

Arguments

Type IntentOptional Attributes Name
real(kind=r8), intent(in) :: f

Input.

character(len=:), intent(out), allocatable :: str

Output.

integer, intent(out), optional :: error

Error code.