Table of Contents

TO_REAL

Function name

TO_REAL

ST call

PROGRAM TO_REAL_DEMO
    VAR
           I1: INT; 
       R1: REAL;
     END_VAR
    R1:=TO_REAL(I1);
END_PROGRAM

Description

The function brings the input value to the output as a real number.

Inputs

InputType Description
IN ANY_ELEMENTARYInput value

Outputs

OutputTypeDescription
REALOutput value

Application example