将其他类型转化为字符串
Format an integer to a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | i | integer to format |
||
character, | intent(in), | optional | :: | fmt | format string |
resulting string
Format a logical to a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | l | logical to format |
||
character, | intent(in), | optional | :: | fmt | format string |
Format a single precision real to a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=sp), | intent(in) | :: | r | real to format |
||
character, | intent(in), | optional | :: | fmt | format string |
Format a double precision real to a string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | r | real to format |
||
character, | intent(in), | optional | :: | fmt | format string |