|
character(len=str_length) function, pointer | generic_to_string (generic, makecopy, str_length) |
| Converts a generic to a string. More...
|
|
character(len=15) function | integer_to_string (input) |
| Converts an integer to a string. More...
|
|
character(len=30) function | real_single_to_string (input, decimal_places, exponent, exponent_small_numbers) |
| Converts a single precision real to a string. More...
|
|
character(len=30) function | real_double_to_string (input, decimal_places, exponent, exponent_small_numbers) |
| Converts a double precision real to a string. More...
|
|
character(len=5) function | logical_to_string (input) |
| Converts a logical to a string. More...
|
|
Converts data types to strings.
For the generic input then a flag indicating whether to make a copy of the underlying generic data and the length of the resulting string must be specified. For other conversions just the data is needed as the string length is assumed and the returned string does not point to the data provided
- Parameters
-
data | The data to convert into a string |
copyflag | For generic data only: Whether to use a copy of the structured data or not |
length | For generic data only: Length of the resulting string |
- Returns
- A string. For generic data a pointer to the string or null if generic conversion not possible
Definition at line 36 of file conversions.F90.