STRING into REAL
STRING_TO_REAL converts a string in floating-point format into a value of the data type REAL.
Thereby the attached string is first converted into a value of the data type STRING[64]. Finally this is converted into a value of the data type REAL via a sub-program that requires approximately 290 steps.
Input
Input data type
Output
Conversion result
Permissible format: '[Space][Sign][Decimal numbers].[Decimal numbers][Space]' e.g. ' -123.456 '
Permissible characters:
Space
Space ""
Decimal numbers
Decimal numbers "0"-"9"
The analysis ends with the first non-decimal number.