-

TO_REAL

Type Function
Description The overloaded function TO_REAL converts an input value of various data types into an output value of the data type REAL (see description of the input for the supported data types).
Parameters Input

IN

Output

OUT
Conversion rules ANY_BIT conversion

ANY_INT conversion

LREAL conversion

DWORD conversion

STRING conversion

Note: If the range and precision of the input data type can be mapped to the range and precision of the output type, an implicit type conversion can be performed instead of using this function.
For the TO_REAL function, this applies to INT, SINT, UINT and USINT inputs.
Error behavior Error behavior
Additional information EN/ENO behavior