TO_REAL
PROGRAM TO_REAL_DEMO VAR I1: INT; R1: REAL; END_VAR R1:=TO_REAL(I1); END_PROGRAM
The function brings the input value to the output as a real number.
| Input | Type | Description |
| IN | ANY_ELEMENTARY | Input value |
| Output | Type | Description |
| ⇒ | REAL | Output value |