libsim  Versione6.3.0

◆ c2r()

elemental real function, public char_utilities::c2r ( character(len=*), intent(in)  string)

Convert a character string to a real value if possible.

It is ELEMENTAL so it works with arrays of any shape. It returns missing value if the input cannot be converted or is empty or missing.

Parametri
[in]stringstring to be represented as REAL

Definizione alla linea 732 del file char_utilities.F90.

732 CHARACTER(len=1), OPTIONAL :: sep !< optional word separator character, if not provided, a blank space is assumed
733 
734 INTEGER :: nword
735 
736 INTEGER :: ls, le
737 INTEGER, POINTER :: lsv(:), lev(:)
738 CHARACTER(len=1) :: lsep
739 
740 IF (PRESENT(sep)) THEN
741  lsep = sep
742 ELSE
743  lsep = ' '
744 ENDIF
745 
746 nword = 0
747 le = 0

Generated with Doxygen.