STRING_TO_REAL

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.

Parameters

Input

Unnamed input (STRING)

Input data type

Output

Unnamed output (REAL)

Conversion result

Remarks

Permissible format: '[Space][Sign][Decimal numbers].[Decimal numbers][Space]' e.g. ' -123.456 '

Permissible characters:

The analysis ends with the first non-decimal number.

Example with and without EN/ENO:

Related topics:

Modified on: 2022-08-23Feedback on this pagePanasonic hotline