libsim  Versione 7.1.6
Elenco di tutti i membri
Riferimenti per l'nterfacciato_char

Set of functions that return a CHARACTER representation of the input variable. Continua...

Descrizione dettagliata

Set of functions that return a CHARACTER representation of the input variable.

The return value is of type CHARACTER with a predefined length depending on the type of the input. The functions use a default format suitable to reasonably represent the input variable, or a user-defined format provided with the optional variable form. The miss optional value, if provided, replaces the output representation in case the input is missing according to the definitions in missing_values module. The length of the miss parameter should not exceed the length of the maximum representable value of the provided type, otherwise it may be truncated. For numerical types, the return value may be quite long, in order to take into account all possible cases, so it is suggested to trim the result with the intrinsic function TRIM() before using it. Be warned that no check is performed on the optional format form, so a runtime error may occur if it is syntactically wrong or not suitable to the data type provided. The functions are ELEMENTAL, so they can be applied to arrays of any shape.

Parametri
in(any type of INTEGER, REAL or CHARACTER) value to be represented as CHARACTER
missCHARACTER(len=*),INTENT(in),OPTIONAL optional character replacement for missing value
formCHARACTER(len=*),INTENT(in),OPTIONAL optional format

Example of use:

INTEGER :: j
...
WRITE(*,*)'The value provided, '//trim(to_char(j))//', is too large'
...
Set of functions that return a CHARACTER representation of the input variable.
Utilities for CHARACTER variables.

Definizione alla linea 259 del file char_utilities.F90.


Generated with Doxygen.