STRING (decimal format) into DOUBLE INTEGER
This function converts a string in decimal formal into a value of the data type DINT.
At first the string is converted into a value of the data type STRING[32]. Finally this is converted into a value of the data type DINT in a subprogram of approximately 270 steps, which is also used by the functions STRING_TO_INT, STRING_TO_WORD, STRING_TO_DINT and STRING_TO_DWORD.
Input
Input data type
Output
Conversion result
If the required data type is supported, we recommend using the overloaded instruction TO_DINT
Acceptable format: '[Space][Sign][Decimal number][Space]' e.g. ' 123456 '
Acceptable characters:
Space
Space ""
Sign
"+“ (plus), "-" (minus)
Decimal numbers
Decimal numbers "0 - 9“
The analysis ends with the first non-decimal number.