int2char Function

public recursive function int2char(i) result(output)

Convert the integer i to a character (array) "i"

Arguments

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

Return Value character(len=:), allocatable

The integer "i" as a character array, e.g. int2char(2) "2" int2char(16) "16"