Return left-justified decimal string of non-negative integer.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | n |
Integer to write. |
function itoa(n) result(s) !! Return left-justified decimal string of non-negative integer. ! Arguments integer(int32), intent(in) :: n !! Integer to write. character(len=12) :: s write (s, '(i0)') n end function itoa