Converts an item to a string.
Converts a Fortran character array to a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | x |
The string to convert. |
The resulting string.
Converts an 8-bit integer to a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int8), | intent(in) | :: | x |
The value to convert. |
The resulting string.
Converts a 16-bit integer to a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int16), | intent(in) | :: | x |
The value to convert. |
The resulting string.
Converts a 32-bit integer to a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | x |
The value to convert. |
The resulting string.
Converts a 64-bit integer to a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int64), | intent(in) | :: | x |
The value to convert. |
The resulting string.
Converts a 32-bit real to a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | x |
The value to convert. |
||
| character(len=*), | intent(in), | optional | :: | fmt |
is used. If used, specify as "(G13.6)", or whatever appropriate format string is desired. Regardless, be sure to include the parenthesis. |
The resulting string.
Converts a 64-bit real to a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x |
The value to convert. |
||
| character(len=*), | intent(in), | optional | :: | fmt |
is used. If used, specify as "(G13.6)", or whatever appropriate format string is desired. Regardless, be sure to include the parenthesis. |
The resulting string.
Converts a 128-bit real to a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real128), | intent(in) | :: | x |
The value to convert. |
||
| character(len=*), | intent(in), | optional | :: | fmt |
is used. If used, specify as "(G13.6)", or whatever appropriate format string is desired. Regardless, be sure to include the parenthesis. |
The resulting string.
Converts an array of C characters (C string) to a string. The C string must be null-terminated. The null-terimator character will not be included in the result.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(kind=c_char, len=1), | intent(in) | :: | str(*) |
The C-string to convert. |
||
| integer(kind=int32), | intent(in), | optional | :: | nchar |
conversion. The default is 2048. |