str_from_num Interface

public interface str_from_num

Generic interface for writing a number to a string. The calling syntax is str_from_num(num, frmt) where number is a real number or an integer, format is the format desired, e.g., e15.6, i5, etc.

Called by

interface~~str_from_num~~CalledByGraph interface~str_from_num str_from_num proc~mcs_run mcs_run proc~mcs_run->interface~str_from_num program~main main program~main->proc~mcs_run

Module Procedures

private pure function str_from_inum(num, frmt) result(str)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: num
character(len=*), intent(in), optional :: frmt

Return Value character(len=:), allocatable

private pure function str_from_ilnum(num, frmt) result(str)

Arguments

Type IntentOptional Attributes Name
integer(kind=ip_long), intent(in) :: num
character(len=*), intent(in), optional :: frmt

Return Value character(len=:), allocatable

private pure function str_from_dnum(num, frmt) result(str)

Arguments

Type IntentOptional Attributes Name
real(kind=rp), intent(in) :: num
character(len=*), intent(in), optional :: frmt

Return Value character(len=:), allocatable