TO_REAL

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.

InputType Description
IN ANY_ELEMENTARYInput value
OutputTypeDescription
REALOutput value

  • © Energocentrum Plus, s.r.o. 2017 - 2024